Build the Project with CMake
Navigate to the project root.
Configure the build:
Makefile,.sln, etc.cmake -S . -B build -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=Release
Optional: enable sanitizers for local debugging
cmake -S . -B build -D ENABLE_ADDRESS_SANITIZER=ON -D CMAKE_BUILD_TYPE=RelWithDebInfo
Help on CMake keys:
-D USE_FUNC_TESTS=ONenable functional tests.-D USE_PERF_TESTS=ONenable performance tests.-D CMAKE_BUILD_TYPE=Releasenormal build (default).-D CMAKE_BUILD_TYPE=RelWithDebInforecommended when using sanitizers or runningvalgrindto keep debug information.-D CMAKE_BUILD_TYPE=Debugfor debugging sessions.
A corresponding flag can be omitted if it’s not needed.
Build the project:
cmake --build build --config Release --parallel
Run tests:
Prefer the helper runner described in
User Guide → CI.