From 00c453f7e4d2ec21d1320ab24ed5945210507da2 Mon Sep 17 00:00:00 2001 From: Victor Angelier CCX Date: Thu, 7 May 2020 09:38:10 +0200 Subject: [PATCH] Created Build with VS 2019 on Windows (markdown) --- Build-with-VS-2019-on-Windows.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Build-with-VS-2019-on-Windows.md 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