Skip to content

Commit

Permalink
cmake: Improve presets
Browse files Browse the repository at this point in the history
Use Qt6 by default as that's the most convenient.
Enable tests for the dev preset.
Add ASAN preset.
  • Loading branch information
iamsergio committed Dec 2, 2024
1 parent 4bb9cc9 commit b281f1b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,34 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"KDChart_QT6": "ON"
}
},
{
"name": "dev",
"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"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
"CMAKE_BUILD_TYPE": "Release",
"KDChart_TESTS": "OFF"
}
}
]
Expand Down

0 comments on commit b281f1b

Please sign in to comment.