- Python3
- CMake (version 3.17.0 minimum)
- VCPKG
-
Clone repo to desired local folder
-
Run these commands:
sudo pip3 install cmake
-
Navigate to the project root (Should have a CMakeLists.txt file in it)
-
Install vcpkg for your OS:
-
git clone https://github.com/microsoft/vcpkg
- clones vcpkg (make sure you're in project root!) -
Next you'll install the packages the project depends on:
-
WINDOWS:
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg install catch2:x64-windows nlohmann-json:x64-windows nana:x64-windows
-
MAC:
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install catch2:x64-osx nlohmann-json:x64-osx nana:x64-osx
-
LINUX:
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install catch2:x64-linux nlohmann-json:x64-linux nana:x64-linux
-
-
mkdir build
-
cd build
-
cmake ..
- creates Makefile, SLN file, etc depending on your compiler -
If cmake compiled with Visual Studio, then you should have a .sln file that you can compile using either Visual Studio or using the Visual Studio Developer Command Prompt with
cl /EHsc main.cpp
-
If cmake compiled with GCC (probably on Mac or Linux) you should have a Makefile that can be used to compile with
make
-
An executable should be available.
./jsmach_uml