summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-boilerplate.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index ae5aedc8..21451090 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -198,9 +198,15 @@ function(opentrack_boilerplate n)
if(NOT arg_NO-INSTALL)
if(arg_BIN AND WIN32)
- install(TARGETS ${n} RUNTIME DESTINATION . LIBRARY DESTINATION .)
+ set(subdir ".")
+ install(TARGETS "${n}" RUNTIME DESTINATION . ${opentrack-perms})
else()
- install(TARGETS ${n} ${opentrack-hier-str})
+ set(subdir "${opentrack-hier-pfx}")
+ install(TARGETS "${n}" ${opentrack-hier-str} ${opentrack-perms})
+ endif()
+ if(MSVC)
+ file(GLOB_RECURSE pdbs "${CMAKE_CURRENT_BINARY_DIR}/*.pdb")
+ install(FILES ${pdbs} DESTINATION "${subdir}" ${opentrack-perms})
endif()
endif()
endif()