2.2. Example project (C++/CMake)¶
The sample C++ project TurretApiSDK includes the following:
TurretApi: generates the C++ language bindings
2.2.1. Prerequisites¶
CMake \(\ge\) v3.13
Visual Studio \(\ge\) 2017 with C++ Build Tools
2.2.2. Steps for Visual Studio¶
Navigate to the project directory in Developer Command Prompt
Create a build directory, for example
mkdir _buildEnter the build directory
cd _build
cmake ..(optionally define a generator with -G)
2.2.3. Building the project¶
You can open the generated solution file TurretApiSDK.sln and build from Visual Studio or use the command prompt eg. cmake --build .