-
-
Notifications
You must be signed in to change notification settings - Fork 616
Expand file tree
/
Copy pathCMakePresets.json.sample
More file actions
183 lines (183 loc) · 4.4 KB
/
CMakePresets.json.sample
File metadata and controls
183 lines (183 loc) · 4.4 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
{
"version": 9,
"configurePresets": [
{
"name": "msvc",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/build/install/${presetName}",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"environment": {
"VCPKG_ROOT": "E:/vcpkg2/"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"KICAD_BUILD_QA_TESTS": "ON",
"KICAD_WIN32_DPI_AWARE": "ON"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": "Windows"
}
}
},
{
"name": "msvc-win64",
"hidden": true,
"architecture": {
"value": "x64",
"strategy": "external"
},
"inherits": [
"msvc"
]
},
{
"name": "msvc-winarm64",
"hidden": true,
"architecture": {
"value": "arm64",
"strategy": "external"
},
"inherits": [
"msvc"
]
},
{
"name": "msvc-win64-debug",
"displayName": "Win64 Debug",
"description": "Sets debug build type and x64 arch",
"inherits": "msvc-win64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"KICAD_BUILD_PNS_DEBUG_TOOL": "ON"
}
},
{
"name": "msvc-win64-release",
"displayName": "Win64 Release",
"description": "Sets release build type",
"inherits": "msvc-win64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "msvc-winarm64-debug",
"displayName": "arm64 Debug",
"description": "Sets debug build type and arm64 arch",
"inherits": "msvc-winarm64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "msvc-winarm64-release",
"displayName": "arm64 Release",
"description": "Sets debug build type and x64 arch",
"inherits": "msvc-winarm64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "linux-base",
"generator": "Ninja",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/build/install/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"description": "Sets debug build type and x64 arch",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-release",
"displayName": "Linux Release",
"description": "Sets release build type",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
}
],
"buildPresets": [
{
"name": "win64-debug",
"displayName": "x64 Debug (Windows)",
"configurePreset": "msvc-win64-debug"
},
{
"name": "win64-release",
"displayName": "x64 Release (Windows)",
"configurePreset": "msvc-win64-release"
},
{
"name": "winarm64-debug",
"displayName": "arm64 Debug (Windows)",
"configurePreset": "msvc-winarm64-debug"
},
{
"name": "winarm64-release",
"displayName": "arm64 Debug (Windows)",
"configurePreset": "msvc-winarm64-release"
},
{
"name": "linux-debug",
"displayName": "Debug (Linux)",
"configurePreset": "linux-base"
},
{
"name": "linux-release",
"displayName": "Release (Linux)",
"configurePreset": "linux-base"
}
],
"testPresets": [
{
"name": "test-base",
"environment": {
"KICAD_RUN_FROM_BUILD_DIR": "1"
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "win64-release",
"configurePreset": "msvc-win64-release",
"inherits": "test-base"
},
{
"name": "win64-debug",
"configurePreset": "msvc-win64-debug",
"inherits": "test-base"
},
{
"name": "linux-release",
"configurePreset": "linux-release",
"inherits": "test-base"
},
{
"name": "linux-debug",
"configurePreset": "linux-debug",
"inherits": "test-base"
}
]
}