-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakePresets.json
42 lines (42 loc) · 1.13 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
{
"version": 3,
"configurePresets": [
{
"name": "windows-x86-base",
"description": "面向具有 Visual Studio 开发环境的 Windows。",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_CXX_STANDARD": "23",
"VCPKG_TARGET_TRIPLET": "x86-windows-static",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
}
],
"buildPresets": [
{
"name": "x86-debug",
"displayName": "x86 Debug",
"configurePreset": "windows-x86-base",
"configuration": "Debug"
},
{
"name": "x86-release",
"displayName": "x86 Release",
"configurePreset": "windows-x86-base",
"configuration": "Release"
}
]
}