-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakePresets.json
233 lines (232 loc) · 8.03 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
{
"version": 2,
"configurePresets": [
{
"name": "conan-deb",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/conan/deb/conan_toolchain.cmake"
}
},
{
"name": "rel",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": true
},
"warnings": {
"unusedCli": false
}
},
{
"name": "deb",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_TESTS": true,
"CMAKE_EXPORT_COMPILE_COMMANDS": true
}
},
{
"name": "unix-make",
"hidden": true,
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_FLAGS_INIT": "$env{CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -pedantic"
}
},
{
"name": "unix-ninja",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-17",
"CMAKE_CXX_COMPILER": "clang++-17",
"CMAKE_CXX_FLAGS_INIT": "$env{CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -pedantic"
}
},
{
"name": "unix-shared",
"hidden": true,
"inherits": "unix-make",
"cacheVariables": {
"CMAKE_CXX_FLAGS_INIT": "$env{CMAKE_CXX_FLAGS_INIT} $env{CMAKE_CXX_FLAGS} -fPIC -Werror -Wall -Wextra -pedantic",
"BUILD_SHARED_LIBS": true
}
},
{
"name": "vs2022",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_CXX_FLAGS_INIT": "$env{CMAKE_CXX_FLAGS_INIT} $env{CMAKE_CXX_FLAGS} /W4 /WX /EHsc"
}
},
{
"name": "vs2022-shared",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_CXX_FLAGS_INIT": "$env{CMAKE_CXX_FLAGS_INIT} $env{CMAKE_CXX_FLAGS} /W4 /WX /EHsc",
"BUILD_SHARED_LIBS": true
}
},
{
"name": "unix-rel",
"displayName": "Unix Make Release",
"binaryDir": "${sourceDir}/build/unix-rel",
"inherits": ["unix-make", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-rel/install"
}
},
{
"name": "unix-rel-ninja",
"displayName": "Unix Ninja Clang Release",
"binaryDir": "${sourceDir}/build/unix-rel-ninja",
"inherits": ["unix-ninja", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-rel-ninja/install"
}
},
{
"name": "unix-rel-shared",
"displayName": "Unix Make Release Shared",
"binaryDir": "${sourceDir}/build/unix-rel-shared",
"inherits": ["unix-shared", "unix-rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-rel-shared/install"
}
},
{
"name": "unix-deb",
"displayName": "Unix Make Debug",
"binaryDir": "${sourceDir}/build/unix-deb",
"inherits": ["unix-make", "deb", "conan-deb"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-O0 --coverage -g -fsanitize=address",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb/install"
}
},
{
"name": "unix-deb-ninja",
"displayName": "Unix Ninja Clang Debug",
"binaryDir": "${sourceDir}/build/unix-deb-ninja",
"inherits": ["unix-ninja", "deb", "conan-deb"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-O0 --coverage -g -fsanitize=address",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb-ninja/install"
}
},
{
"name": "unix-deb-shared",
"displayName": "Unix Make Debug Shared",
"binaryDir": "${sourceDir}/build/unix-deb-shared",
"inherits": ["unix-shared", "unix-deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb-shared/install"
}
},
{
"name": "vs2022-rel",
"displayName": "Visual Studio 2022 Release",
"binaryDir": "${sourceDir}/build/vs2022-rel",
"inherits": ["vs2022", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-rel/install"
}
},
{
"name": "vs2022-deb",
"displayName": "Visual Studio 2022 Debug",
"binaryDir": "${sourceDir}/build/vs2022-deb",
"inherits": ["vs2022", "deb", "conan-deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-deb/install"
}
},
{
"name": "vs2022-rel-shared",
"displayName": "Visual Studio 2022 Release Shared",
"binaryDir": "${sourceDir}/build/vs2022-rel-shared",
"inherits": ["vs2022-shared", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-rel/install"
}
},
{
"name": "vs2022-deb-shared",
"displayName": "Visual Studio 2022 Debug Shared",
"binaryDir": "${sourceDir}/build/vs2022-deb-shared",
"inherits": ["vs2022-shared", "deb", "conan-deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-rel/install"
}
}
],
"buildPresets": [
{
"name": "vs2022-rel",
"displayName": "Visual Studio 2022 Release Build",
"configurePreset": "vs2022-rel",
"configuration": "Release"
},
{
"name": "vs2022-deb",
"displayName": "Visual Studio 2022 Debug Build",
"configurePreset": "vs2022-deb",
"configuration": "Debug"
},
{
"name": "vs2022-rel-shared",
"displayName": "Visual Studio 2022 Release Shared Build",
"configurePreset": "vs2022-rel-shared",
"configuration": "Release"
},
{
"name": "vs2022-deb-shared",
"displayName": "Visual Studio 2022 Debug Shared Build",
"configurePreset": "vs2022-deb-shared",
"configuration": "Debug"
},
{
"name": "unix-deb",
"displayName": "Unix Make Debug Build",
"configurePreset": "unix-deb",
"configuration": "Debug"
},
{
"name": "unix-deb-ninja",
"displayName": "Unix Ninja Debug Build",
"configurePreset": "unix-deb-ninja",
"configuration": "Debug"
},
{
"name": "unix-deb-shared",
"displayName": "Unix Make Debug Build",
"configurePreset": "unix-deb-shared",
"configuration": "Debug"
},
{
"name": "unix-rel",
"displayName": "Unix Make Release Build",
"configurePreset": "unix-rel",
"configuration": "Release"
},
{
"name": "unix-rel-ninja",
"displayName": "Unix Ninja Release Build",
"configurePreset": "unix-rel-ninja",
"configuration": "Release"
},
{
"name": "unix-rel-shared",
"displayName": "Unix Make Release Build",
"configurePreset": "unix-rel-shared",
"configuration": "Release"
}
]
}