-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakePresets.json
486 lines (486 loc) · 14.7 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"ENABLE_TESTING": {
"type": "BOOL",
"value": "ON"
}
},
"hidden": true
},
{
"name": "debug",
"description": "Configure debug build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"hidden": true
},
{
"name": "pch",
"description": "Enable precompiled headers",
"cacheVariables": {
"ENABLE_PCH": {
"type": "BOOL",
"value": "ON"
},
"ENABLE_CLANG_TIDY": {
"type": "BOOL",
"value": "OFF"
}
},
"hidden": true
},
{
"name": "coverage",
"description": "Configure coverage",
"inherits": [
"debug"
],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc",
"ENABLE_COVERAGE": {
"type": "BOOL",
"value": "ON"
}
},
"hidden": true
},
{
"name": "release",
"description": "Configure release build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"hidden": true
},
{
"name": "linux-gcc",
"description": "Configure gcc (Unix Makefile)",
"generator": "Unix Makefiles",
"inherits": [
"base"
],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc"
},
"hidden": true
},
{
"name": "linux-coverage",
"displayName": "Coverage (Unix Makefile)",
"description": "Configure Coverage",
"inherits": [
"linux-gcc",
"coverage"
]
},
{
"name": "linux-debug",
"displayName": "Debug (Unix Makefile)",
"description": "Configure Debug",
"inherits": [
"linux-gcc",
"debug",
"pch"
]
},
{
"name": "linux-release",
"displayName": "Release (Unix Makefile)",
"description": "Configure Release",
"inherits": [
"linux-gcc",
"release",
"pch"
]
},
{
"name": "ninja",
"description": "Configure ninja build",
"generator": "Ninja",
"inherits": [
"base"
],
"hidden": true
},
{
"name": "linux-debug-ninja",
"description": "Configure (Ninja, gcc)",
"displayName": "Ninja Debug",
"inherits": [
"ninja",
"debug"
]
},
{
"name": "linux-release-ninja",
"displayName": "Ninja Release",
"description": "Configure Release (Ninja)",
"inherits": [
"ninja",
"release"
]
},
{
"name": "linux-coverage-ninja",
"displayName": "Coverage (Ninja)",
"description": "Configure Coverage (Ninja)",
"inherits": [
"ninja",
"coverage"
]
},
{
"name": "clang",
"description": "Configure clang build",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER": "clang"
},
"hidden": true
},
{
"name": "linux-debug-ninja-clang",
"description": "Configure clang (Ninja)",
"displayName": "Clang Debug (Ninja)",
"inherits": [
"ninja",
"debug",
"clang"
]
},
{
"name": "linux-release-ninja-clang",
"description": "Configure release (Ninja, clang)",
"displayName": "Clang Release (Ninja)",
"inherits": [
"ninja",
"release",
"clang"
]
},
{
"name": "linux-ninja-clang-address-sanitizers",
"description": "Configure clang build with address sanitizers",
"displayName": "Address sanitizers",
"inherits": [
"linux-debug-ninja-clang"
],
"cacheVariables": {
"ENABLE_SANITIZER_ADDRESS": {
"type": "BOOL",
"value": "ON"
},
"ENABLE_SANITIZER_LEAK": {
"type": "BOOL",
"value": "ON"
},
"ENABLE_SANITIZER_UNDEFINED_BEHAVIOR": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "linux-ninja-clang-memory-sanitizers",
"description": "Configure clang build with memory sanitizers",
"displayName": "Memory sanitizers",
"inherits": [
"linux-debug-ninja-clang"
],
"cacheVariables": {
"ENABLE_SANITIZER_MEMORY": {
"type": "BOOL",
"value": "ON"
}
}
},
{
"name": "visual-studio-2019",
"description": "Configure Visual Studio 2019 build",
"generator": "Visual Studio 16 2019",
"inherits": [
"base"
],
"hidden": true
},
{
"name": "visual-studio-2019-debug",
"displayName": "Visual Studio 2019 (Debug)",
"description": "Configure Visual Studio 2019 Debug build",
"inherits": [
"visual-studio-2019",
"debug"
]
},
{
"name": "visual-studio-2019-release",
"displayName": "Visual Studio 2019 (Release)",
"description": "Configure Visual Studio 2019 Release build",
"inherits": [
"visual-studio-2019",
"release"
]
},
{
"name": "visual-studio-2022",
"description": "Configure Visual Studio 2022 build",
"generator": "Visual Studio 17 2022",
"inherits": [
"base"
],
"hidden": true
},
{
"name": "visual-studio-2022-debug",
"displayName": "Visual Studio 2022 (Debug)",
"description": "Configure Visual Studio 2022 Debug build",
"inherits": [
"visual-studio-2022",
"debug"
]
},
{
"name": "visual-studio-2022-release",
"displayName": "Visual Studio 2022 (Release)",
"description": "Configure Visual Studio 2022 Release build",
"inherits": [
"visual-studio-2022",
"release"
]
}
],
"buildPresets": [
{
"name": "gcc-debug",
"description": "gcc debug build.",
"displayName": "Debug",
"configurePreset": "linux-debug",
"configuration": "Debug",
"jobs": 16
},
{
"name": "gcc-coverage",
"description": "gcc debug with coverage.",
"displayName": "Coverage",
"configurePreset": "linux-coverage",
"configuration": "Debug",
"jobs": 16
},
{
"name": "gcc-release",
"description": "gcc clean release build.",
"displayName": "Release",
"configurePreset": "linux-release",
"configuration": "Release",
"jobs": 16,
"cleanFirst": true
},
{
"name": "ninja-debug",
"description": "Ninja gcc debug build.",
"displayName": "Debug",
"configurePreset": "linux-debug-ninja",
"configuration": "Debug",
"jobs": 16
},
{
"name": "ninja-coverage",
"description": "Ninja gcc debug with coverage.",
"displayName": "Coverage",
"configurePreset": "linux-coverage-ninja",
"configuration": "Debug",
"jobs": 16
},
{
"name": "ninja-release",
"description": "Ninja gcc clean release build.",
"displayName": "Release",
"configurePreset": "linux-release-ninja",
"configuration": "Release",
"jobs": 16,
"cleanFirst": true
},
{
"name": "clang-debug",
"description": "Ninja clang debug build.",
"displayName": "Debug",
"configurePreset": "linux-debug-ninja-clang",
"configuration": "Debug",
"jobs": 16
},
{
"name": "clang-release",
"description": "Ninja clang clean release build.",
"displayName": "Release",
"configurePreset": "linux-release-ninja-clang",
"configuration": "Release",
"jobs": 16,
"cleanFirst": true
},
{
"name": "clang-address-sanitizers",
"description": "Ninja clang address sanitizers build.",
"displayName": "Address Sanitizers",
"configurePreset": "linux-ninja-clang-address-sanitizers",
"configuration": "Debug",
"jobs": 16
},
{
"name": "clang-memory-sanitizers",
"description": "Ninja clang memory sanitizers build.",
"displayName": "Memory Sanitizers",
"configurePreset": "linux-ninja-clang-memory-sanitizers",
"configuration": "Debug",
"jobs": 16
},
{
"name": "visual-studio-debug",
"description": "Visual Studio 2019 Debug build.",
"displayName": "Debug",
"configurePreset": "visual-studio-2019-debug",
"configuration": "Debug",
"jobs": 16
},
{
"name": "visual-studio-release",
"description": "Visual Studio 2019 Release build.",
"displayName": "Release",
"configurePreset": "visual-studio-2019-release",
"configuration": "Release",
"jobs": 16,
"cleanFirst": true
},
{
"name": "run-unittests",
"description": "Run Unitttests",
"displayName": "Run Unitttests",
"inherits": "gcc-coverage",
"targets": [
"run_unittests"
]
},
{
"name": "doc",
"description": "gcc docu build.",
"displayName": "Documentation",
"configurePreset": "linux-release",
"configuration": "Release",
"jobs": 16,
"targets": [
"doxygen",
"docs"
]
},
{
"name": "doc-windows",
"description": "windows docu build.",
"displayName": "Documentation",
"configurePreset": "visual-studio-2019-release",
"configuration": "Release",
"jobs": 16,
"targets": [
"doxygen",
"docs"
]
},
{
"name": "package-gcc",
"description": "build package (gcc).",
"displayName": "Package",
"inherits": "gcc-release",
"configurePreset": "linux-release",
"configuration": "Release",
"targets": [
"docs",
"package"
]
},
{
"name": "package-ninja",
"description": "build package (ninja).",
"displayName": "Package",
"configurePreset": "linux-release-ninja",
"inherits": "ninja-release",
"configuration": "Release",
"targets": [
"docs",
"package"
]
},
{
"name": "package-clang",
"description": "build package (clang).",
"displayName": "Package",
"inherits": "clang-release",
"configurePreset": "linux-release-ninja-clang",
"configuration": "Release",
"targets": [
"docs",
"package"
]
},
{
"name": "package-windows",
"description": "build package (Visual Studio 2019).",
"displayName": "Package",
"inherits": "visual-studio-release",
"configurePreset": "visual-studio-2019-release",
"configuration": "Release",
"targets": [
"docs",
"package"
]
}
],
"testPresets": [
{
"name": "unittest-coverage-gcc",
"description": "Unittest with coverage (gcc)",
"displayName": "Unittest Coverage",
"configurePreset": "linux-coverage"
},
{
"name": "unittest-gcc",
"description": "Unittest (gcc)",
"displayName": "Unittest",
"configurePreset": "linux-debug"
},
{
"name": "unittest-coverage-ninja",
"description": "Unittest with coverage (ninja)",
"displayName": "Unittest Coverage",
"configurePreset": "linux-coverage-ninja"
},
{
"name": "unittest-ninja",
"description": "Unittest (ninja)",
"displayName": "Unittest",
"configurePreset": "linux-debug-ninja"
},
{
"name": "unittest-ninja-clang",
"description": "Unittest (clang)",
"displayName": "Unittest",
"configurePreset": "linux-debug-ninja-clang"
},
{
"name": "unittest-vs-2019",
"description": "Unittest (Visual Studio",
"displayName": "Unittest",
"configurePreset": "visual-studio-2019-debug"
}
]
}