mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-08-23 11:56:27 -04:00
Created Build with VS 2019 on Windows (markdown)
parent
6e0fbb6a9a
commit
00c453f7e4
22
Build-with-VS-2019-on-Windows.md
Normal file
22
Build-with-VS-2019-on-Windows.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
1) Open Visual Studio developer command prompt
|
||||||
|
|
||||||
|
Visual Studio 2019 Developer Command Prompt v16.5.4
|
||||||
|
|
||||||
|
`<C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>`
|
||||||
|
|
||||||
|
2) `Execute: vcvarsall.bat`
|
||||||
|
3) `mkdir -p build`
|
||||||
|
4) `cd build`
|
||||||
|
5) `cmake -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF ..`
|
||||||
|
6) `cmake --build . --config Release | Debug`
|
||||||
|
7) Copy lib\Release | lib\Debug to your project source folder
|
||||||
|
8) Copy include\json to your project source folder
|
||||||
|
9) Add the following macro to your project
|
||||||
|
`
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#pragma comment(lib, "json/jsoncpp_debug.lib")
|
||||||
|
#else
|
||||||
|
#pragma comment(lib, "json/jsoncpp.lib")
|
||||||
|
#endif
|
||||||
|
#include "json/json.h"
|
||||||
|
`
|
Loading…
x
Reference in New Issue
Block a user