From 8695acdd1023c60f3ca8da63a7d0944f353f6453 Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 26 Mar 2025 09:31:40 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E6=B7=BB=E5=8A=A0CMakePresets.json?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vs/CMakePresets.json | 58 +++++++++++++++++++++++++++++++++++++++ vcpkg.txt => vs/vcpkg.txt | 0 vs.txt => vs/vs.txt | 0 3 files changed, 58 insertions(+) create mode 100644 vs/CMakePresets.json rename vcpkg.txt => vs/vcpkg.txt (100%) rename vs.txt => vs/vs.txt (100%) diff --git a/vs/CMakePresets.json b/vs/CMakePresets.json new file mode 100644 index 0000000..e9cd4e3 --- /dev/null +++ b/vs/CMakePresets.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/vcpkg.txt b/vs/vcpkg.txt similarity index 100% rename from vcpkg.txt rename to vs/vcpkg.txt diff --git a/vs.txt b/vs/vs.txt similarity index 100% rename from vs.txt rename to vs/vs.txt