Skip to content

Commit 3885441

Browse files
committed
cmake: Add presets for native Windows builds
1 parent 7681746 commit 3885441

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CMakePresets.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": 3,
3+
"cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0},
4+
"configurePresets": [
5+
{
6+
"name": "vs2022",
7+
"displayName": "Build using 'Visual Studio 17 2022' generator and 'x64-windows' triplet",
8+
"condition": {
9+
"type": "equals",
10+
"lhs": "${hostSystemName}",
11+
"rhs": "Windows"
12+
},
13+
"generator": "Visual Studio 17 2022",
14+
"architecture": "x64",
15+
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
16+
"cacheVariables": {
17+
"VCPKG_TARGET_TRIPLET": "x64-windows",
18+
"BUILD_GUI": "ON",
19+
"WITH_QRENCODE": "OFF",
20+
"WITH_NATPMP": "OFF"
21+
}
22+
},
23+
{
24+
"name": "vs2022-static",
25+
"displayName": "Build using 'Visual Studio 17 2022' generator and 'x64-windows-static' triplet",
26+
"condition": {
27+
"type": "equals",
28+
"lhs": "${hostSystemName}",
29+
"rhs": "Windows"
30+
},
31+
"generator": "Visual Studio 17 2022",
32+
"architecture": "x64",
33+
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
34+
"cacheVariables": {
35+
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
36+
"BUILD_GUI": "ON",
37+
"WITH_QRENCODE": "OFF",
38+
"WITH_NATPMP": "OFF"
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)