Skip to content

emrekovanci/Template-CPP

Repository files navigation

ci

Template project for developing C++ applications.

CMake Presets

This project makes use of CMake Presets to simplify the process of configuring the project.

To build the project, please make sure you have vcpkg installed and properly set up at least with the VCPKG_ROOT environment variable pointing to the right place.

List Presets

cmake --list-presets=all

Configure & Build & Test

cmake --preset=<configurePreset-name>
cmake --build --preset=<buildPreset-name>
ctest --preset=<testPreset-name>

Development on Windows

  • Sourcing the Environment

    • If you're building with Ninja and the Visual C++ toolset on Windows, set the environment before CMake is called to generate the build system. You can do it by calling vcvarsall.bat with the architecture argument.

      /path/to/vcvarsall.bat x64
  • Clang/LLVM support in Visual Studio