-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
71 lines (71 loc) · 1.58 KB
/
CMakePresets.json
File metadata and controls
71 lines (71 loc) · 1.58 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}"
},
{
"name": "release",
"displayName": "Release",
"description": "Build the full project in Release mode",
"inherits": "default",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "tests",
"displayName": "Tests",
"description": "Build tests in RelWithDebInfo mode",
"inherits": "default",
"binaryDir": "${sourceDir}/build-tests",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "tests-with-coverage",
"displayName": "Tests + Coverage",
"description": "Build tests with GCC/Clang code coverage instrumentation",
"inherits": "tests",
"cacheVariables": {
"ENABLE_COVERAGE": "ON"
}
}
],
"buildPresets": [
{
"name": "release",
"configurePreset": "release",
"configuration": "Release"
},
{
"name": "tests",
"configurePreset": "tests",
"configuration": "RelWithDebInfo"
},
{
"name": "tests-with-coverage",
"configurePreset": "tests-with-coverage",
"configuration": "RelWithDebInfo"
}
],
"testPresets": [
{
"name": "tests",
"configurePreset": "tests",
"output": {
"outputOnFailure": true
}
}
]
}