Skip to content

Commit

Permalink
Add INSTALL target to default VS. Change pdb output directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 8, 2024
1 parent 28cb1ea commit b80c98b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/usvfs_dll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_PDB_FILE:usvfs_dll> DESTINATION lib OPTIONAL)
install(FILES $<TARGET_PDB_FILE:usvfs_dll> DESTINATION pdb OPTIONAL)
install(EXPORT usvfs${ARCH_POSTFIX}Targets
FILE usvfs${ARCH_POSTFIX}Targets.cmake
NAMESPACE usvfs${ARCH_POSTFIX}::
Expand Down
2 changes: 1 addition & 1 deletion src/usvfs_proxy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ set_target_properties(usvfs_proxy
)

install(TARGETS usvfs_proxy EXPORT usvfs${ARCH_POSTFIX}Targets)
install(FILES $<TARGET_PDB_FILE:usvfs_proxy> DESTINATION lib OPTIONAL)
install(FILES $<TARGET_PDB_FILE:usvfs_proxy> DESTINATION pdb OPTIONAL)

0 comments on commit b80c98b

Please sign in to comment.