The CMakePresets.json file uses JSON format to define a hierarchy of configuration options. The root object contains three primary sections:
"name": "dev-default", "displayName": "Development Config", "binaryDir": "$sourceDir/build/dev", "generator": "Unix Makefiles", "cacheVariables": "CMAKE_BUILD_TYPE": "Debug", "BUILD_TESTING": "ON" cmakepresets.json example
Defines how to run your test suite (the ctest step). Full CMakePresets.json Example The CMakePresets
: Defines the schema version (e.g., 3 or 6 ). Later versions support more advanced features like JSON schema validation . "displayName": "Development Config"