From f47595e3d3201264569b44698930d0c450bb6d34 Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 26 Mar 2025 10:59:51 +0800 Subject: [PATCH] use CMakeSettings.json not CMakePresets.json --- vs/CMakePresets.json | 58 -------------------------- vs/CMakeSettings.json | 95 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 58 deletions(-) delete mode 100644 vs/CMakePresets.json create mode 100644 vs/CMakeSettings.json diff --git a/vs/CMakePresets.json b/vs/CMakePresets.json deleted file mode 100644 index e9cd4e3..0000000 --- a/vs/CMakePresets.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "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" - } - ] -} \ No newline at end of file diff --git a/vs/CMakeSettings.json b/vs/CMakeSettings.json new file mode 100644 index 0000000..9eb02bd --- /dev/null +++ b/vs/CMakeSettings.json @@ -0,0 +1,95 @@ +{ + "configurations": [ + { + "name": "x64 Local Debug", + "generator": "Visual Studio 17 2022 Win64", + "configurationType": "Debug", + "inheritEnvironments": [ "msvc_x64_x64" ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "environments": [ + { + "PATH": "C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64\\bin;${env.PATH}", + "VCPKG_ROOT": "D:/vcpkg" + } + ], + "variables": [ + { + "name": "CMAKE_PREFIX_PATH", + "value": "C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64" + }, + { + "name": "CMAKE_TOOLCHAIN_FILE", + "value": "${env.VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + } + ] + }, + { + "name": "x64 Local Release", + "generator": "Visual Studio 17 2022 Win64", + "configurationType": "Release", + "inheritEnvironments": [ "msvc_x64_x64" ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "environments": [ + { + "PATH": "C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64\\bin;${env.PATH}", + "VCPKG_ROOT": "D:/vcpkg" + } + ], + "variables": [ + { + "name": "CMAKE_PREFIX_PATH", + "value": "C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64" + }, + { + "name": "CMAKE_TOOLCHAIN_FILE", + "value": "${env.VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + } + ] + }, + { + "name": "x64 Linux Debug", + "generator": "Ninja", + "configurationType": "Debug", + "cmakeExecutable": "cmake", + "remoteCopySourcesExclusionList": [ ".vs", "out" ], + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "linux_x64" ], + "remoteMachineName": "${defaultRemoteMachineName}", + "remoteCMakeListsRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/src", + "remoteBuildRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/out/build/${name}", + "remoteInstallRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/out/install/${name}", + "remoteCopySources": true, + "rsyncCommandArgs": "-t --delete", + "remoteCopyBuildOutput": false, + "remoteCopySourcesMethod": "rsync", + "variables": [] + }, + { + "name": "x64 Linux Release", + "generator": "Ninja", + "configurationType": "Release", + "cmakeExecutable": "cmake", + "remoteCopySourcesExclusionList": [ ".vs", "out" ], + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "", + "inheritEnvironments": [ "linux_x64" ], + "remoteMachineName": "${defaultRemoteMachineName}", + "remoteCMakeListsRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/src", + "remoteBuildRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/out/build/${name}", + "remoteInstallRoot": "$HOME/vs/${projectDirName}/${workspaceHash}/out/install/${name}", + "remoteCopySources": true, + "rsyncCommandArgs": "-t --delete", + "remoteCopyBuildOutput": false, + "remoteCopySourcesMethod": "rsync", + "variables": [] + } + ] +} \ No newline at end of file