From b281f1bb8ec57a60a13c178801a77dfa9b8f2043 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Mon, 2 Dec 2024 17:48:34 +0000 Subject: [PATCH] cmake: Improve presets Use Qt6 by default as that's the most convenient. Enable tests for the dev preset. Add ASAN preset. --- CMakePresets.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 873c44b2..b39cb217 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -6,7 +6,8 @@ "generator": "Ninja", "binaryDir": "${sourceDir}/build-${presetName}", "cacheVariables": { - "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", + "KDChart_QT6": "ON" } }, { @@ -14,7 +15,16 @@ "inherits": "base", "displayName": "Dev build", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + "CMAKE_BUILD_TYPE": "Debug", + "KDChart_TESTS": "ON" + } + }, + { + "name": "dev-asan", + "inherits": "dev", + "displayName": "ASAN build", + "cacheVariables": { + "KDChart_ENABLE_SANITIZERS": "On" } }, { @@ -22,7 +32,8 @@ "inherits": "base", "displayName": "Release build", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" + "CMAKE_BUILD_TYPE": "Release", + "KDChart_TESTS": "OFF" } } ]