Adding build cmake preset
This commit is contained in:
+78
-56
@@ -1,58 +1,80 @@
|
||||
{
|
||||
"version": 3,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 19,
|
||||
"patch": 0
|
||||
"version": 3,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 19,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "release",
|
||||
"displayName": "Release (no ASan)",
|
||||
"description": "Release build without sanitizers",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "release",
|
||||
"displayName": "Release (no ASan)",
|
||||
"description": "Release build without sanitizers",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "release-asan",
|
||||
"displayName": "Release (ASan)",
|
||||
"description": "Release build with Address Sanitizer",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug",
|
||||
"displayName": "Debug (no ASan)",
|
||||
"description": "Debug build without sanitizers",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug-asan",
|
||||
"displayName": "Debug (ASan)",
|
||||
"description": "Debug build with Address Sanitizer",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"name": "release-asan",
|
||||
"displayName": "Release (ASan)",
|
||||
"description": "Release build with Address Sanitizer",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug",
|
||||
"displayName": "Debug (no ASan)",
|
||||
"description": "Debug build without sanitizers",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug-asan",
|
||||
"displayName": "Debug (ASan)",
|
||||
"description": "Debug build with Address Sanitizer",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer",
|
||||
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
||||
"CMAKE_INSTALL_PREFIX": "C:/Program Files/Seele"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "release",
|
||||
"displayName": "Release (no ASan)",
|
||||
"configurePreset": "release"
|
||||
},
|
||||
{
|
||||
"name": "release-asan",
|
||||
"displayName": "Release (ASan)",
|
||||
"configurePreset": "release-asan"
|
||||
},
|
||||
{
|
||||
"name": "debug",
|
||||
"displayName": "Debug (no ASan)",
|
||||
"configurePreset": "debug"
|
||||
},
|
||||
{
|
||||
"name": "debug-asan",
|
||||
"displayName": "Debug (ASan)",
|
||||
"configurePreset": "debug-asan"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user