-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
99 lines (99 loc) · 3.4 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
{
"version": 7,
"configurePresets": [
{
"name": "mingw-debug",
"description": "MinGW使用Debug模式配置",
"displayName": "MinGW-Debug",
"generator": "MinGW Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_STANDARD": "17",
"CMAKE_CXX_STANDARD": "20",
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "mingw-minsizerel",
"description": "MinGW使用MinSizeRel模式配置",
"displayName": "MinGW-MinSizeRel",
"generator": "MinGW Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_C_STANDARD": "17",
"CMAKE_CXX_STANDARD": "20",
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "mingw-release",
"description": "MinGW使用Release模式配置",
"displayName": "MinGW-Release",
"generator": "MinGW Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_STANDARD": "17",
"CMAKE_CXX_STANDARD": "20",
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "mingw-relwithdebinfo",
"description": "MinGW使用RelWithDebInfo模式配置",
"displayName": "MinGW-RelWithDebInfo",
"generator": "MinGW Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_STANDARD": "17",
"CMAKE_CXX_STANDARD": "20",
"VCPKG_TARGET_TRIPLET": "x64-mingw-static",
"VCPKG_HOST_TRIPLET": "x64-mingw-static"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
],
"buildPresets": [
{
"name": "debug",
"description": "Debug模式构建",
"displayName": "Debug",
"configurePreset": "mingw-debug",
"targets": [
"app"
]
},
{
"name": "minsizerel",
"description": "MinSizeRel模式构建",
"displayName": "MinSizeRel",
"configurePreset": "mingw-minsizerel",
"targets": [
"app"
]
},
{
"name": "release",
"description": "Release模式构建",
"displayName": "Release",
"configurePreset": "mingw-release",
"targets": [
"app"
]
},
{
"name": "relwithdebinfo",
"description": "RelWithDebInfo模式构建",
"displayName": "RelWithDebInfo",
"configurePreset": "mingw-relwithdebinfo",
"targets": [
"app"
]
}
]
}