diff --git a/Build-with-VS-2019-on-Windows.md b/Build-with-VS-2019-on-Windows.md new file mode 100644 index 0000000..80f6513 --- /dev/null +++ b/Build-with-VS-2019-on-Windows.md @@ -0,0 +1,22 @@ +1) Open Visual Studio developer command prompt + +Visual Studio 2019 Developer Command Prompt v16.5.4 + +`` + +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" +` \ No newline at end of file