-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
156 lines (156 loc) · 4.34 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Debug (cc, C++20)",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug",
"JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
"USE_LIBUNWIND": "ON",
"USE_LIBCURL": "OFF",
"BUILDJAVA": "OFF",
"BUILD_TESTING": "ON"
}
},
{
"name": "debug-clang",
"inherits": "debug",
"displayName": "Debug (clang, clang-tidy, C++20)",
"binaryDir": "${sourceDir}/build/debug-clang",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug-clang",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/debug-clang"
}
},
{
"name": "debug-gcc",
"inherits": "debug",
"displayName": "Debug (gcc, C++20)",
"binaryDir": "${sourceDir}/build/debug-gcc",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug-gcc",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "release",
"inherits": "debug",
"displayName": "Release (cc, C++20)",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release",
"JAU_CMAKE_FIX_INSTALL_PREFIX": "ON"
}
},
{
"name": "release-clang",
"inherits": "release",
"displayName": "Release (clang, clang-tidy, C++20)",
"binaryDir": "${sourceDir}/build/release-clang",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release-clang",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/release-clang"
}
},
{
"name": "release-gcc",
"inherits": "release",
"displayName": "Release (gcc, C++20)",
"binaryDir": "${sourceDir}/build/release-gcc",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release-gcc",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "release-wasm",
"inherits": "release",
"displayName": "Release (emscripten, C++20)",
"binaryDir": "${sourceDir}/build/release-wasm",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release-wasm",
"JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
"USE_LIBUNWIND": "OFF"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug"
},
{
"name": "debug-gcc",
"configurePreset": "debug-gcc"
},
{
"name": "debug-clang",
"configurePreset": "debug-clang"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "release-gcc",
"configurePreset": "release-gcc"
},
{
"name": "release-clang",
"configurePreset": "release-clang"
}
],
"testPresets": [
{
"name": "debug",
"configurePreset": "debug",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "debug-gcc",
"configurePreset": "debug-gcc",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "debug-clang",
"configurePreset": "debug-clang",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release",
"configurePreset": "release",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release-gcc",
"configurePreset": "release-gcc",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release-clang",
"configurePreset": "release-clang",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
}
]
}