forked from tx-code/OcctImgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
76 lines (76 loc) · 2.73 KB
/
CMakePresets.json
File metadata and controls
76 lines (76 loc) · 2.73 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 15,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Visual Studio 17 2022",
"architecture": "x64",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install",
"CMAKE_EXPORT_COMPILE_COMMANDS": true
}
},
{
"name": "debug",
"inherits": "base",
"displayName": "Debug (OcctImgui)",
"description": "使用 Debug 模式构建 OcctImgui 项目(无优化,完整调试信息)",
"binaryDir": "${sourceDir}/build/Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "relwithdebinfo",
"inherits": "base",
"displayName": "RelWithDebInfo (OcctImgui)",
"description": "使用 RelWithDebInfo 模式构建 OcctImgui 项目(优化但包含调试信息,用于性能分析)",
"binaryDir": "${sourceDir}/build/RelWithDebInfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"OCCTIMGUI_IFR_USE_SOURCE": "ON"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release (OcctImgui)",
"description": "使用 Release 模式构建 OcctImgui 项目(完全优化,用于生产发布)",
"binaryDir": "${sourceDir}/build/Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug",
"displayName": "Debug 构建 (OcctImgui)",
"description": "使用 Debug 配置构建 OcctImgui 项目",
"configuration": "Debug"
},
{
"name": "relwithdebinfo",
"configurePreset": "relwithdebinfo",
"displayName": "RelWithDebInfo 构建 (OcctImgui)",
"description": "使用 RelWithDebInfo 配置构建 OcctImgui 项目(优化但包含调试信息)",
"configuration": "RelWithDebInfo"
},
{
"name": "release",
"configurePreset": "release",
"displayName": "Release 构建 (OcctImgui)",
"description": "使用 Release 配置构建 OcctImgui 项目(完全优化)",
"configuration": "Release"
}
]
}