From 02265402956c63be27c1b1e5ac7a7ff453a138e1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 20 Sep 2016 17:06:27 +0200 Subject: cmake: install .pdb files --- cmake/opentrack-boilerplate.cmake | 10 ++++++++-- 1 file 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() -- cgit v1.2.3