add:添加CMakePresets.json示例
This commit is contained in:
parent
ccb0f76e8d
commit
8695acdd10
58
vs/CMakePresets.json
Normal file
58
vs/CMakePresets.json
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"version": 3,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 14,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "win64-debug",
|
||||
"displayName": "Windows x64 Debug (VS 2017, Qt 5.14.2, Vcpkg)",
|
||||
"description": "Local Windows 64-bit Debug build with VS2017, Qt5.14.2, and Vcpkg",
|
||||
"generator": "Visual Studio 15 2017 Win64",
|
||||
"binaryDir": "${sourceDir}/build/${presetName}",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"CMAKE_PREFIX_PATH": "C:/Qt/Qt5.14.2/5.14.2/msvc2017_64",
|
||||
"CMAKE_TOOLCHAIN_FILE": "D:/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
||||
"VCPKG_TARGET_TRIPLET": "x64-windows"
|
||||
},
|
||||
"environment": {
|
||||
"PATH": "C:/Qt/Qt5.14.2/5.14.2/msvc2017_64/bin;$penv{path}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "win64-release",
|
||||
"displayName": "Windows x64 Release (VS 2017, Qt 5.14.2, Vcpkg)",
|
||||
"description": "Local Windows 64-bit Release build with VS2017, Qt5.14.2, and Vcpkg",
|
||||
"generator": "Visual Studio 15 2017 Win64",
|
||||
"binaryDir": "${sourceDir}/build/${presetName}",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release",
|
||||
"CMAKE_PREFIX_PATH": "C:/Qt/Qt5.14.2/5.14.2/msvc2017_64",
|
||||
"CMAKE_TOOLCHAIN_FILE": "D:/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
||||
"VCPKG_TARGET_TRIPLET": "x64-windows"
|
||||
},
|
||||
"environment": {
|
||||
"PATH": "C:/Qt/Qt5.14.2/5.14.2/msvc2017_64/bin;$penv{path}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "win64-debug",
|
||||
"configurePreset": "win64-debug",
|
||||
"displayName": "2017 x64 De",
|
||||
"configuration": "Debug"
|
||||
},
|
||||
{
|
||||
"name": "win64-release",
|
||||
"configurePreset": "win64-release",
|
||||
"displayName": "2017 x64 Re",
|
||||
"configuration": "Release"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user