-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakePresets.json
204 lines (204 loc) · 6 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"description": "sets build and install directory",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/bin/build/${presetName}",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/bin/install/${presetName}",
"WINDOWS_PIPELINE": false
}
},
{
"name": "linux-local",
"displayName": "Linux Local",
"description": "Target the Windows Subsystem for Linux (WSL) or a remote Linux system.",
"inherits": [ "base" ],
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug"
},
"environment": {
"VCPKG_ROOT": "/home/cmake-local/vcpkg"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] },
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
}
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"description": "Target the Windows Subsystem for Linux (WSL) or a remote Linux system.",
"inherits": [ "base" ],
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] },
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
}
},
{
"name": "linux-release",
"displayName": "Linux Release",
"description": "Target the Windows Subsystem for Linux (WSL) or a remote Linux system.",
"inherits": [ "linux-debug" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "macos-debug",
"displayName": "macOS Debug",
"description": "Target a remote macOS system with Ninja",
"inherits": [ "base" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "macOS" ] },
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
}
},
{
"name": "macos-release",
"displayName": "macOS Release",
"description": "Target a remote macOS system with Ninja",
"inherits": [ "macos-debug" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "windows-debug",
"displayName": "Windows x64 Debug",
"description": "Target Windows with the Visual Studio development environment.",
"inherits": [ "base" ],
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_BUILD_TYPE": "Debug"
},
"vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } }
},
{
"name": "windows-release",
"displayName": "Windows x64 Release",
"description": "Target Windows with the Visual Studio development environment.",
"inherits": [ "windows-debug" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "windows-releaseWithDebInfo",
"displayName": "Windows x64 Release",
"description": "Target Windows with the Visual Studio development environment.",
"inherits": [ "windows-debug" ],
"cacheVariables": {
"WINDOWS_PIPELINE": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
}
],
"buildPresets": [
{
"name": "core-build",
"description": "Inherits environment from base configurePreset",
"configurePreset": "base",
"hidden": true,
"inheritConfigureEnvironment": true
},
{
"name": "windows-debug",
"description": "Windows debug build",
"inherits": "core-build",
"configurePreset": "windows-debug"
},
{
"name": "windows-release",
"description": "Windows release build",
"inherits": "core-build",
"configurePreset": "windows-release"
},
{
"name": "windows-releaseWithDebInfo",
"description": "Windows release with deb info build",
"inherits": "core-build",
"configurePreset": "windows-releaseWithDebInfo"
},
{
"name": "linux-debug",
"configurePreset": "linux-debug",
"inherits": "core-build"
},
{
"name": "code-coverage",
"configurePreset": "linux-debug",
"inherits": "core-build",
"targets": "coverage"
},
{
"name": "linux-release",
"configurePreset": "linux-release",
"inherits": "core-build"
},
{
"name": "macos-debug",
"description": "MacOS debug build",
"inherits": "core-build",
"configurePreset": "macos-debug"
},
{
"name": "macos-release",
"description": "MacOS release build",
"inherits": "core-build",
"configurePreset": "macos-release"
}
],
"testPresets": [
{
"name": "test-linux",
"configurePreset": "linux-release",
"output": {"outputOnFailure": true},
"environment": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": "test-windows",
"configurePreset": "windows-release",
"output": { "outputOnFailure": true },
"environment": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": "test-macos",
"configurePreset": "macos-release",
"output": { "outputOnFailure": true },
"environment": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
]
}