From 08aa052b4d9055152faaf5d1f5bb57093a974151 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Mon, 2 Dec 2024 17:19:45 +0000 Subject: [PATCH] cmake: Add a CMakePresets.json file --- CMakePresets.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 00000000..873c44b2 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,29 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "base", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build-${presetName}", + "cacheVariables": { + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + }, + { + "name": "dev", + "inherits": "base", + "displayName": "Dev build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "release", + "inherits": "base", + "displayName": "Release build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + } + ] +}