2.2. Example project (C++/CMake)

The sample C++ project TurretApiSDK includes the following:

2.2.1. Prerequisites

  • CMake \(\ge\) v3.13

  • Visual Studio \(\ge\) 2017 with C++ Build Tools

2.2.2. Steps for Visual Studio

  1. Navigate to the project directory in Developer Command Prompt

  2. Create a build directory, for example mkdir _build

  3. Enter the build directory cd _build

  4. 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 .