diff options
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6754fae..a206cbe8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,6 +231,11 @@ function(fm_add_install_executable self) ) install(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${exe}.debug" DESTINATION bin) install(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${exe}.nodebug" RENAME "${exe}" DESTINATION bin) + else() + install(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${exe}" DESTINATION bin) + if(MSVC) + install(FILES $<TARGET_PDB_FILE:${self}> DESTINATION bin) + endif() endif() endfunction() |