CMakePresets.json
4.91 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "base-config",
"hidden": true,
"description": "Common base settings",
"binaryDir": "${sourceDir}/cmake-build-${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "base-debug",
"hidden": true,
"inherits": "base-config",
"description": "Base settings for debug builds",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_SHARED_LIBS": "OFF"
}
},
{
"name": "base-unix",
"hidden": true,
"inherits": "base-config",
"description": "Base settings for Linux & macOS",
"condition": {
"type": "anyOf",
"conditions": [
{
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
{
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
]
},
"generator": "Ninja"
},
{
"name": "base-msvc",
"hidden": true,
"inherits": "base-config",
"description": "Base settings for Windows using MSVC",
"environment": {
"TOOLCHAIN_NAME": "Visual Studio"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "base-maintainer",
"hidden": true,
"displayName": "Base settings for maintainer mode",
"description": "Unix Maintainer build",
"inherits": "base-unix",
"cacheVariables": {
"MAINTAINER_MODE": "ON",
"BUILD_STATIC_LIBS": "OFF"
}
},
{
"name": "maintainer",
"displayName": "Maintainer",
"description": "Unix Maintainer build",
"inherits": "base-maintainer",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "maintainer-debug",
"displayName": "Maintainer (debug)",
"description": "Unix Maintainer build",
"inherits": [
"base-maintainer",
"base-debug"
],
"cacheVariables": {
"BUILD_STATIC_LIBS": "ON"
}
},
{
"name": "maintainer-coverage",
"displayName": "Maintainer (coverage)",
"description": "Unix Maintainer build",
"inherits": "maintainer-debug",
"cacheVariables": {
"ENABLE_COVERAGE": "ON"
}
},
{
"name": "maintainer-profile",
"displayName": "Maintainer (profile)",
"description": "Unix Maintainer build",
"inherits": "maintainer-debug",
"environment": {
"CFLAGS": "-pg",
"CXXFLAGS": "-pg",
"LDFLAGS": "-pg"
}
},
{
"name": "debug",
"displayName": "Debug",
"description": "Debug build",
"inherits": "base-config",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "Release",
"description": "Release build",
"inherits": "base-config",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "sanitizers",
"displayName": "Unix + clang sanitizers",
"description": "Debug build with AddressSanitizer enabled",
"inherits": [
"base-unix",
"debug"
],
"environment": {
"CFLAGS": "-fsanitize=address -fsanitize=undefined",
"CXXFLAGS": "-fsanitize=address -fsanitize=undefined",
"LDFLAGS": "-fsanitize=address -fsanitize=undefined",
"CC": "clang",
"CXX": "clang++"
},
"cacheVariables": {
"MAINTAINER_MODE": "ON",
"BUILD_SHARED_LIBS": "OFF",
"REQUIRE_CRYPTO_OPENSSL": "ON",
"REQUIRE_CRYPTO_GNUTLS": "ON",
"ENABLE_QTC": "ON"
}
},
{
"name": "msvc",
"displayName": "Windows/MSVC",
"description": "Visual Studio release with debug info build",
"inherits": [
"base-msvc"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"BUILD_SHARED_LIBS": "OFF"
}
},
{
"name": "msvc-release",
"displayName": "Windows/MSVC Release",
"description": "Visual Studio release build",
"inherits": [
"base-msvc",
"release"
]
}
],
"buildPresets": [
{
"name": "maintainer",
"configurePreset": "maintainer",
"description": "Run build for maintainer mode"
}
],
"testPresets": [
{
"name": "maintainer",
"configurePreset": "maintainer",
"description": "Run default tests for maintainer mode",
"output": {
"verbosity": "verbose"
}
},
{
"name": "msvc",
"configurePreset": "msvc",
"description": "Run default tests for msvc",
"output": {
"verbosity": "verbose"
}
}
]
}