From b80c98baa3d1ec05e70d6f57ca51fadc28ec527d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 8 Jul 2024 20:41:41 +0200 Subject: [PATCH] Add INSTALL target to default VS. Change pdb output directory. --- CMakeLists.txt | 1 + src/usvfs_dll/CMakeLists.txt | 2 +- src/usvfs_proxy/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d203f23..e0deb42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ include(CMakePackageConfigHelpers) project(usvfs) set_property(GLOBAL PROPERTY USE_FOLDERS ON) +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) set(CMAKE_CXX_STANDARD 20) set(USVFS_BINDIR ${CMAKE_CURRENT_LIST_DIR}/bin) diff --git a/src/usvfs_dll/CMakeLists.txt b/src/usvfs_dll/CMakeLists.txt index c5fdef0..2520b50 100644 --- a/src/usvfs_dll/CMakeLists.txt +++ b/src/usvfs_dll/CMakeLists.txt @@ -49,7 +49,7 @@ set_target_properties(usvfs_dll RUNTIME_OUTPUT_DIRECTORY_RELEASE ${USVFS_LIBDIR}) install(TARGETS usvfs_dll EXPORT usvfs${ARCH_POSTFIX}Targets FILE_SET HEADERS) -install(FILES $ DESTINATION lib OPTIONAL) +install(FILES $ DESTINATION pdb OPTIONAL) install(EXPORT usvfs${ARCH_POSTFIX}Targets FILE usvfs${ARCH_POSTFIX}Targets.cmake NAMESPACE usvfs${ARCH_POSTFIX}:: diff --git a/src/usvfs_proxy/CMakeLists.txt b/src/usvfs_proxy/CMakeLists.txt index b67d913..47614ee 100644 --- a/src/usvfs_proxy/CMakeLists.txt +++ b/src/usvfs_proxy/CMakeLists.txt @@ -12,4 +12,4 @@ set_target_properties(usvfs_proxy ) install(TARGETS usvfs_proxy EXPORT usvfs${ARCH_POSTFIX}Targets) -install(FILES $ DESTINATION lib OPTIONAL) +install(FILES $ DESTINATION pdb OPTIONAL)