Created Build with VS 2019 on Windows (markdown)

Victor Angelier CCX 2020-05-07 09:38:10 +02:00
parent 6e0fbb6a9a
commit 00c453f7e4

@ -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"
`