From 3e2a40d5e8aa93cf5e46fe1c7c9a07c08cf20535 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 27 Oct 2025 08:11:13 +0300 Subject: [PATCH] Configures CMake for Vcpkg integration Sets up CMake presets to utilize the Vcpkg toolchain. Specifies the Vcpkg root directory and manifest features. Defines the installation directory for Vcpkg packages. Forces the usage of Ninja as the make program. --- CMakePresets.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index 5f13630..5aa27b1 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -43,7 +43,11 @@ "binaryDir": "${sourceDir}/cmake-build/build/${presetName}", "installDir": "${sourceDir}/cmake-build/install/${presetName}", "cacheVariables": { - "CMAKE_CXX_COMPILER": "clang++" + "CMAKE_CXX_COMPILER": "clang++", + "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", + "VCPKG_MANIFEST_FEATURES": "imgui;avx2;tests", + "VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed", + "CMAKE_MAKE_PROGRAM": "Ninja" }, "condition": { "type": "equals",