-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
60 lines (60 loc) · 1.83 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
{
"version": 3,
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"BUILD_EXAMPLES": false,
"BUILD_TESTS": false,
"USE_FMT": false,
"ENABLE_ASAN": false,
"ENABLE_TSAN": false
}
},
{
"name": "release",
"inherits": "default",
"displayName": "Release Config",
"description": "Release build with optimizations",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": false
}
},
{
"name": "dev",
"inherits": "default",
"displayName": "Development Config",
"description": "Development build with examples and tests",
"cacheVariables": {
"BUILD_EXAMPLES": true,
"BUILD_TESTS": true,
"USE_FMT": true
}
},
{
"name": "asan",
"inherits": "dev",
"displayName": "ASan Config",
"description": "Development build with AddressSanitizer",
"cacheVariables": {
"ENABLE_ASAN": true
}
},
{
"name": "tsan",
"inherits": "dev",
"displayName": "TSan Config",
"description": "Development build with ThreadSanitizer",
"cacheVariables": {
"ENABLE_TSAN": true
}
}
]
}