diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 17:06:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 17:06:27 +0200 |
commit | 02265402956c63be27c1b1e5ac7a7ff453a138e1 (patch) | |
tree | 1fb4b8c3e68e4f35790821065bd3e3f0d1fd387d | |
parent | 6bd66bdba425cb7a87b8961cc648e71b56ffec2e (diff) |
cmake: install .pdb files
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 10 |
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() |