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
- "release"
- "debug"
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
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