Files
GTA4.CHS/CMakePresets.json
2024-06-09 18:14:05 +08:00

43 lines
1.1 KiB
JSON

{
"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": "20",
"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"
}
]
}