+81
CMakePresets.json
+81
CMakePresets.json
···
1
+
{
2
+
"version": 2,
3
+
"cmakeMinimumRequired": {
4
+
"major": 3,
5
+
"minor": 20,
6
+
"patch": 0
7
+
},
8
+
"configurePresets": [
9
+
{
10
+
"name": "default",
11
+
"inherits": "service-debug",
12
+
"displayName": "Default (same as service-debug)"
13
+
},
14
+
{
15
+
"name": "service-debug",
16
+
"displayName": "Debug Monado service",
17
+
"generator": "Ninja",
18
+
"binaryDir": "${sourceDir}/build",
19
+
"cacheVariables": {
20
+
"CMAKE_BUILD_TYPE": "Debug",
21
+
"BUILD_DOC": "OFF",
22
+
"SANITIZE_ADDRESS": "ON",
23
+
"SANITIZE_UNDEFINED": "ON"
24
+
}
25
+
},
26
+
{
27
+
"name": "standalone-debug",
28
+
"inherits": "service-debug",
29
+
"displayName": "Debug Monado standalone",
30
+
"cacheVariables": {
31
+
"XRT_FEATURE_SERVICE": "OFF"
32
+
}
33
+
},
34
+
{
35
+
"name": "service-release",
36
+
"displayName": "Release Monado service",
37
+
"inherits": "service-debug",
38
+
"cacheVariables": {
39
+
"CMAKE_BUILD_TYPE": "Release",
40
+
"BUILD_DOC": "ON",
41
+
"BUILD_DOC_EXTRACT_ALL": "ON",
42
+
"SANITIZE_ADDRESS": "OFF",
43
+
"SANITIZE_UNDEFINED": "OFF"
44
+
}
45
+
},
46
+
{
47
+
"name": "standalone-release",
48
+
"displayName": "Release Monado standalone",
49
+
"inherits": "service-release",
50
+
"cacheVariables": {
51
+
"XRT_FEATURE_SERVICE": "OFF"
52
+
}
53
+
},
54
+
{
55
+
"name": "service-debug-optimized",
56
+
"displayName": "Debug Monado service with optimizations",
57
+
"inherits": "service-debug",
58
+
"cacheVariables": {
59
+
"CMAKE_CXX_FLAGS": "-g -march=native -O3 -fno-omit-frame-pointer",
60
+
"CMAKE_C_FLAGS": "-g -march=native -O3 -fno-omit-frame-pointer",
61
+
"SANITIZE_UNDEFINED": "OFF"
62
+
}
63
+
},
64
+
{
65
+
"name": "standalone-debug-optimized",
66
+
"displayName": "Debug Monado standalone with optimizations",
67
+
"inherits": "service-debug-optimized",
68
+
"cacheVariables": {
69
+
"XRT_FEATURE_SERVICE": "OFF"
70
+
}
71
+
}
72
+
],
73
+
"buildPresets": [
74
+
{
75
+
"name": "default",
76
+
"displayName": "Build and install",
77
+
"configurePreset": "default",
78
+
"targets": "install"
79
+
}
80
+
]
81
+
}