diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..254d5a9 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,53 @@ +{ + "version": 2, + "cmakeMinimumRequired": { + "major": 3, + "minor": 20, + "patch": 0 + }, + "configurePresets": [ + { + "name": "common", + "hidden": true, + "generator": "Unix Makefiles", + "binaryDir": "build", + "cacheVariables": { + "CMAKE_EXPORT_COMPILE_COMMANDS": true + } + }, + { + "name": "dev", + "displayName": "Developer config", + "description": "Build with debug symbols and tests enabled", + "inherits": "common", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "WITH_TESTS": true + } + }, + { + "name": "release", + "displayName": "Release config", + "description": "Build without debug symbols or tests", + "inherits": "common", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "WITH_TESTS": false + } + } + ], + "testPresets": [ + { + "name": "default", + "configurePreset": "dev", + "output": { + "verbosity": "verbose", + "outputOnFailure": true + }, + "execution": { + "noTestsAction": "error", + "stopOnFailure": true + } + } + ] +}