-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathCMakePresets.json
296 lines (282 loc) · 9.23 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
{
"version": 3,
"configurePresets": [
{
"hidden": true,
"name": "Configure Base",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "1",
"ERHE_FONT_RASTERIZATION_LIBRARY": "freetype",
"ERHE_GLTF_LIBRARY": "fastgltf",
"ERHE_GUI_LIBRARY": "imgui",
"ERHE_PHYSICS_LIBRARY": "jolt",
"ERHE_PROFILE_LIBRARY": "tracy",
"ERHE_RAYTRACE_LIBRARY": "bvh",
"ERHE_SVG_LIBRARY": "lunasvg",
"ERHE_TEXT_LAYOUT_LIBRARY": "harfbuzz",
"ERHE_WINDOW_LIBRARY": "glfw",
"ERHE_XR_LIBRARY": "none"
}
},
{
"name": "Configure Empty",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "Configure Debug",
"inherits": "Configure Base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "Configure Release",
"inherits": "Configure Base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"hidden": true,
"name": "Configure Embree",
"cacheVariables": {
"ERHE_RAYTRACE_LIBRARY": "Embree",
"EMBREE_ISPC_SUPPORT": "FALSE",
"EMBREE_TASKING_SYSTEM": "INTERNAL",
"EMBREE_TUTORIALS": "OFF",
"EMBREE_STATIC_LIB": "ON",
"EMBREE_GEOMETRY_TRIANGLE": "ON",
"EMBREE_GEOMETRY_QUAD": "OFF",
"EMBREE_GEOMETRY_CURVE": "OFF",
"EMBREE_GEOMETRY_SUBDIVISION": "OFF",
"EMBREE_GEOMETRY_USER": "OFF",
"EMBREE_GEOMETRY_INSTANCE": "ON",
"EMBREE_GEOMETRY_GRID": "OFF",
"EMBREE_GEOMETRY_POINT": "OFF",
"EMBREE_MAX_ISA": "NONE",
"EMBREE_ISA_NEON": "OFF",
"EMBREE_ISA_SSE2": "OFF",
"EMBREE_ISA_SSE42": "OFF",
"EMBREE_ISA_AVX": "OFF",
"EMBREE_ISA_AVX2": "OFF",
"EMBREE_ISA_AVX512": "OFF"
}
},
{
"hidden": true,
"name": "Configure Embree SSE",
"inherits": [ "Configure Embree" ],
"cacheVariables": { "EMBREE_ISA_SSE42": "ON" }
},
{
"hidden": true,
"name": "Configure Embree Neon",
"inherits": [ "Configure Embree" ],
"cacheVariables": { "EMBREE_ISA_NEON": "ON" }
},
{
"hidden": true,
"name": "Configure Clang",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld"
}
},
{
"name": "Configure Clang Debug",
"inherits": [ "Configure Debug", "Configure Clang" ]
},
{
"name": "Configure Clang Release",
"inherits": [ "Configure Release", "Configure Clang" ]
},
{
"hidden": true,
"name": "Configure GCC",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "Configure GCC Debug",
"inherits": [ "Configure Debug", "Configure GCC" ]
},
{
"name": "Configure GCC Release",
"inherits": [ "Configure Release", "Configure GCC" ]
},
{
"hidden": true,
"name": "Configure GCC 14",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-14",
"CMAKE_CXX_COMPILER": "g++-14"
}
},
{
"name": "Configure GCC 14 Debug",
"inherits": [ "Configure Debug", "Configure GCC 14" ]
},
{
"name": "Configure GCC 14 Release",
"inherits": [ "Configure Release", "Configure GCC 14" ]
},
{
"name": "Configure Windows",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "Configure Visual Studio 2022",
"inherits": [
"Configure Base",
"Configure Windows"
],
"generator": "Visual Studio 17 2022"
},
{
"name": "Configure Clang Windows Ninja",
"hidden": false,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"ERHE_PHYSICS_LIBRARY": "none",
"CMAKE_EXPORT_COMPILE_COMMANDS": "1",
"CMAKE_C_COMPILER": "C:/Program Files/LLVM/bin/clang.exe",
"CMAKE_CXX_COMPILER": "C:/Program Files/LLVM/bin/clang++.exe",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
},
"architecture": {
"value": "x64",
"strategy": "external"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "Configure Clang 18",
"hidden": true,
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "clang-18",
"CMAKE_CXX_COMPILER": "clang++-18",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld"
}
},
{
"name": "Configure Clang 18 Debug",
"inherits": [ "Configure Debug", "Configure Clang 18" ]
},
{
"name": "Configure Clang 18 Release",
"inherits": [ "Configure Release", "Configure Clang 18" ]
}
],
"buildPresets": [
{
"name": "Build Base",
"hidden": true,
"verbose": false,
"configurePreset": "Configure Base"
},
{
"name": "Build Empty",
"configurePreset": "Configure Empty"
},
{
"name": "Build Debug",
"displayName": "Build Debug",
"configurePreset": "Configure Debug",
"configuration": "Debug"
},
{
"name": "Build Release",
"displayName": "Build Release",
"configurePreset": "Configure Release",
"configuration": "Release"
},
{
"name": "Build Clang Debug",
"inherits": "Build Debug",
"configurePreset": "Configure Clang Debug"
},
{
"name": "Build Clang Release",
"inherits": "Build Release",
"configurePreset": "Configure Clang Release"
},
{
"name": "Build GCC Debug",
"inherits": "Build Debug",
"configurePreset": "Configure GCC Debug"
},
{
"name": "Build GCC Release",
"inherits": "Build Release",
"configurePreset": "Configure GCC Release"
},
{
"name": "Build GCC 14 Debug",
"inherits": "Build Debug",
"configurePreset": "Configure GCC 14 Debug"
},
{
"name": "Build GCC 14 Release",
"inherits": "Build Release",
"configurePreset": "Configure GCC 14 Release"
},
{
"name": "Build Visual Studio 2022 Debug",
"inherits": "Build Debug",
"configurePreset": "Configure Visual Studio 2022"
},
{
"name": "Build Visual Studio 2022 Release",
"inherits": "Build Release",
"configurePreset": "Configure Visual Studio 2022"
},
{
"name": "Build Clang 18 Debug",
"configurePreset": "Configure Clang 18 Debug",
"configuration": "Debug"
},
{
"name": "Build Clang 18 Release",
"configurePreset": "Configure Clang 18 Release",
"configuration": "Release"
},
{
"name": "Build Clang Windows Ninja Debug",
"configurePreset": "Configure Clang Windows Ninja",
"configuration": "Debug"
},
{
"name": "Build Clang Windows Ninja Release",
"configurePreset": "Configure Clang Windows Ninja",
"configuration": "Release"
}
]
}