From 9bd3e1cd8d22eba836c62490324089ae797ac985 Mon Sep 17 00:00:00 2001 From: Karutoh Date: Sun, 29 Sep 2024 20:41:37 -0700 Subject: [PATCH] Added vcpkg. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93ea536..802bb74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,6 +259,11 @@ if (IS_OS_LINUX) target_include_directories(EHS_Stc PRIVATE ${PIPEWIRE_INCLUDE_DIRS}) target_include_directories(EHS_Dyn PRIVATE ${PIPEWIRE_INCLUDE_DIRS}) elseif (IS_OS_WINDOWS) + if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) + set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + CACHE STRING "Vcpkg toolchain file") + endif() + set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/EHS") install(TARGETS EHS_Dyn LIBRARY DESTINATION "lib") install(TARGETS EHS_Dyn RUNTIME DESTINATION "bin")