1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-12-27 00:18:07 +00:00

Add CMakePresets.json

It defines only configure presets to be used mostly by our CI.
This commit is contained in:
Anichitei Ionel-Cristinel 2024-09-17 14:22:08 +03:00 committed by GitHub
parent 4b98f1b9e4
commit ea78026087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

82
CMakePresets.json Normal file
View File

@ -0,0 +1,82 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "common-options",
"hidden": true,
"description": "Common options shared by all configurations",
"binaryDir": "${sourceDir}/build/${presetName}"
},
{
"name": "asan",
"inherits": "common-options",
"description": "Enables ASAN",
"cacheVariables": {
"BDD_ASAN": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "ubsan",
"inherits": "common-options",
"description": "Enables UBSAN",
"cacheVariables": {
"BDD_UBSAN": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "debug-sanitizers",
"inherits": ["asan", "ubsan"],
"description": "Debug build with ASAN and UBSAN",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "no-mnemonic",
"inherits": "common-options",
"description": "Excludes mnemonics",
"cacheVariables": {
"BDD_NO_MNEMONIC": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "debug",
"inherits": "common-options",
"description": "Debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"inherits": "common-options",
"description": "Release build with LTO",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BDD_LTO": {
"type": "BOOL",
"value": "ON"
}
}
}
],
"buildPresets": [
],
"testPresets": [
]
}