-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
62 lines (62 loc) · 1.81 KB
/
Copy pathCMakePresets.json
File metadata and controls
62 lines (62 loc) · 1.81 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
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
"configurePresets": [
{
"name": "msvc",
"displayName": "MSVC (Visual Studio 18 2026, x64)",
"description": "默认: MSVC / cl.exe / x64",
"generator": "Visual Studio 18 2026",
"architecture": "x64",
"binaryDir": "${sourceDir}/build"
},
{
"name": "msvc-x86",
"displayName": "MSVC (Visual Studio 18 2026, x86/Win32)",
"description": "MSVC / cl.exe / 32 位 (输出到 dist/x86, 与 x64 分目录互不覆盖)",
"generator": "Visual Studio 18 2026",
"architecture": "Win32",
"binaryDir": "${sourceDir}/build-x86"
},
{
"name": "msvc-arm64",
"displayName": "MSVC (Visual Studio 18 2026, ARM64)",
"description": "MSVC / ARM64 原生 (需安装 VS 的 ARM64 生成工具; 输出到 dist/arm64)",
"generator": "Visual Studio 18 2026",
"architecture": "ARM64",
"binaryDir": "${sourceDir}/build-arm64"
}
],
"buildPresets": [
{
"name": "msvc-minsize",
"displayName": "MSVC x64 MinSizeRel (体积最小, 默认发布)",
"configurePreset": "msvc",
"configuration": "MinSizeRel"
},
{
"name": "msvc-release",
"displayName": "MSVC x64 Release",
"configurePreset": "msvc",
"configuration": "Release"
},
{
"name": "msvc-debug",
"displayName": "MSVC x64 Debug",
"configurePreset": "msvc",
"configuration": "Debug"
},
{
"name": "msvc-x86-minsize",
"displayName": "MSVC x86 MinSizeRel",
"configurePreset": "msvc-x86",
"configuration": "MinSizeRel"
},
{
"name": "msvc-arm64-minsize",
"displayName": "MSVC ARM64 MinSizeRel",
"configurePreset": "msvc-arm64",
"configuration": "MinSizeRel"
}
]
}