From 263a72cca4a16cd484dd2afc9de8e178a0bd557b Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 26 Mar 2025 10:59:01 +0800 Subject: [PATCH] config --- simu-sub/CMakeSettings.json | 118 +++++++++++++++++++++++++++--------- 1 file changed, 89 insertions(+), 29 deletions(-) diff --git a/simu-sub/CMakeSettings.json b/simu-sub/CMakeSettings.json index c018e36..9eb02bd 100644 --- a/simu-sub/CMakeSettings.json +++ b/simu-sub/CMakeSettings.json @@ -1,35 +1,95 @@ { - "configurations": [ + "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": [ { - "name": "x64-Debug", - "generator": "Ninja", - "configurationType": "Debug", - "inheritEnvironments": [ "msvc_x64_x64" ], - "buildRoot": "${projectDir}\\out\\build\\${name}", - "installRoot": "${projectDir}\\out\\install\\${name}", - "cmakeCommandArgs": "", - "buildCommandArgs": "", - "ctestCommandArgs": "" + "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": "Linux-GCC-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": "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