-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
229 lines (229 loc) · 7.42 KB
/
CMakePresets.json
File metadata and controls
229 lines (229 loc) · 7.42 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
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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Debug Config",
"description": "Debug build using vcpkg",
"generator": "Ninja",
"binaryDir": "${sourceDir}/bin/build/${presetName}",
"installDir": "${sourceDir}/bin/install/${presetName}",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "Release Config",
"description": "Release build using vcpkg",
"generator": "Ninja",
"binaryDir": "${sourceDir}/bin/build/${presetName}",
"installDir": "${sourceDir}/bin/install/${presetName}",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "deploy",
"displayName": "Deployment Config",
"description": "Production deployment build without examples",
"generator": "Ninja",
"binaryDir": "${sourceDir}/bin/build/${presetName}",
"installDir": "${sourceDir}/bin/install/${presetName}",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Release",
"BINANCECPP_BUILD_EXAMPLES": false
}
},
{
"name": "windows-debug",
"inherits": "debug",
"displayName": "Windows Debug",
"description": "Debug Windows build using vcpkg with Ninja and MSVC",
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_C_COMPILER": "cl.exe"
}
},
{
"name": "windows-release",
"inherits": "release",
"displayName": "Windows Release",
"description": "Release Windows build using vcpkg with Ninja and MSVC",
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_C_COMPILER": "cl.exe"
}
},
{
"name": "linux-debug",
"inherits": "debug",
"displayName": "Linux Debug",
"description": "Debug Linux build using vcpkg with GCC",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "linux-release",
"inherits": "release",
"displayName": "Linux Release",
"description": "Release Linux build using vcpkg with GCC",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "macos-debug",
"inherits": "debug",
"displayName": "macOS Debug",
"description": "Debug macOS build using vcpkg with Clang",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "macos-release",
"inherits": "release",
"displayName": "macOS Release",
"description": "Release macOS build using vcpkg with Clang",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "windows-deploy",
"inherits": "deploy",
"displayName": "Windows Deploy",
"description": "Production Windows deployment build without examples using Ninja and MSVC",
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_C_COMPILER": "cl.exe"
}
},
{
"name": "linux-deploy",
"inherits": "deploy",
"displayName": "Linux Deploy",
"description": "Production Linux deployment build without examples",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "macos-deploy",
"inherits": "deploy",
"displayName": "macOS Deploy",
"description": "Production macOS deployment build without examples",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
}
],
"buildPresets": [
{
"name": "windows-debug",
"displayName": "Windows Debug Build",
"configurePreset": "windows-debug"
},
{
"name": "windows-release",
"displayName": "Windows Release Build",
"configurePreset": "windows-release"
},
{
"name": "linux-debug",
"displayName": "Linux Debug Build",
"configurePreset": "linux-debug"
},
{
"name": "linux-release",
"displayName": "Linux Release Build",
"configurePreset": "linux-release"
},
{
"name": "macos-debug",
"displayName": "macOS Debug Build",
"configurePreset": "macos-debug"
},
{
"name": "macos-release",
"displayName": "macOS Release Build",
"configurePreset": "macos-release"
},
{
"name": "windows-deploy",
"displayName": "Windows Deploy Build",
"configurePreset": "windows-deploy"
},
{
"name": "linux-deploy",
"displayName": "Linux Deploy Build",
"configurePreset": "linux-deploy"
},
{
"name": "macos-deploy",
"displayName": "macOS Deploy Build",
"configurePreset": "macos-deploy"
}
]
}