Skip to content

Latest commit

 

History

History
25 lines (25 loc) · 841 Bytes

File metadata and controls

25 lines (25 loc) · 841 Bytes

CMake Buildsystem

CMake Workflow

This will configure, build, test, and install to a local directory: install. The build directory will be ./build/<preset-name>, so build/release in this case.

cmake --workflow --preset=release

Available presets

  • "release"
  • "debug"

CMake Presets

The stees of the above workflow can be run individually with "release and "debug" presets. This does the same as the above workflow.

cmake --preset=release
cmake --build --preset=release
ctest --preset=release
cmake --install build/release

Configure, Build, Test, Install with CMake

Standard cmake commands work fine. This also does the same as the above workflow.

cmake -S . -B build/release
cmake --build build/release
ctest --test-dir build/release
cmake --install build/release --prefix=install