-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
85 lines (85 loc) · 1.84 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "cfg-auto-build-dir",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}"
},
{
"name": "cfg-clang",
"generator": "Ninja",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "Debug",
"description": "Configure for debug build",
"binaryDir": "${sourceDir}/build/debug",
"inherits" : [ "cfg-clang" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release-time-trace",
"description": "Configure for release build",
"binaryDir": "${sourceDir}/build/release-time-trace",
"inherits" :[ "cfg-auto-build-dir", "cfg-clang" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS" : "-ftime-trace",
"ENABLE_TIME_TRACE_BUILD" : "ON"
}
}
],
"buildPresets": [
{
"name": "Debug",
"configurePreset": "Debug"
},
{
"name": "release-time-trace",
"configurePreset": "release-time-trace"
}
],
"testPresets": [
{
"name": "release-time-trace",
"configurePreset": "release-time-trace",
"output": {
"outputOnFailure": true
},
"execution": {
"jobs": 24
}
}
],
"workflowPresets": [
{
"name" : "release-time-trace",
"description": "build with test execution clang-release-asan",
"steps": [
{
"type": "configure",
"name": "release-time-trace"
},
{
"type": "build",
"name": "release-time-trace"
},
{
"type": "test",
"name": "release-time-trace"
}
]
}
]
}