This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
72 lines (72 loc) · 2.78 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "Debug",
"displayName": "Debug",
"description": "Debug build with assertions, debug info, and additional debugging options.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Og -g -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_C_FLAGS": "-Og -g -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS_DEBUG": "-fsanitize=address,undefined",
"CMAKE_C_FLAGS_DEBUG": "-fsanitize=address,undefined"
}
},
{
"name": "Valgrind",
"displayName": "Valgrind",
"description": "Debug build with assertions, debug info, and additional debugging options optimized for Valgrind.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/valgrind",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Og -g -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_C_FLAGS": "-Og -g -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG",
"CMAKE_C_FLAGS_RELEASE": "-O3 -DNDEBUG",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "-O2 -g -DNDEBUG",
"CMAKE_C_FLAGS_RELWITHDEBINFO": "-O2 -g -DNDEBUG",
"CMAKE_CXX_FLAGS_MINSIZEREL": "-Os -DNDEBUG",
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -DNDEBUG"
}
},
{
"name": "Test",
"displayName": "Test",
"description": "Build with tests and extra checks",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/test",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-Ofast -DNDEBUG -march=native -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_C_FLAGS": "-Ofast -DNDEBUG -march=native -Wall -Wextra -Wpedantic -Wconversion -Wno-unused-function",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS_RELEASE": "-fsanitize=address,undefined",
"CMAKE_C_FLAGS_RELEASE": "-fsanitize=address,undefined",
"BUILD_TESTS": "ON"
}
},
{
"name": "Release",
"displayName": "Release",
"description": "Release build with aggressive optimizations and without assertions.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-Ofast -DNDEBUG -march=native",
"CMAKE_C_FLAGS": "-Ofast -DNDEBUG -march=native"
}
}
]
}