BUGFIX: qwindows.dll now automatically added to the install folder

This commit is contained in:
Elouan Appéré 2015-09-02 18:48:54 +02:00
parent 71d3687b70
commit e53842229b
2 changed files with 9 additions and 1 deletions

View File

@ -43,7 +43,7 @@ else()
endif()
install(DIRECTORY "include/LibPkmGC" DESTINATION "Release/include" CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT Headers)
install(DIRECTORY "include/LibPkmGC" DESTINATION "Debug/include" CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT Headers)
install(DIRECTORY "include/LibPkmGC" DESTINATION "Debug/include" CONFIGURATIONS Debug COMPONENT Headers)
install(FILES "README.md" "LICENSE" DESTINATION "Debug/include" CONFIGURATIONS Debug COMPONENT Headers)
install(FILES "README.md" "LICENSE" DESTINATION "Release/include" CONFIGURATIONS Release RelWithDebInfo MinSizeRel COMPONENT Headers)

View File

@ -65,6 +65,10 @@ endif()
if(COPY_QT_LIBS)
get_target_property(qt_libs Qt5::Widgets INTERFACE_LINK_LIBRARIES)
get_target_property(qt_widgets_location Qt5::Widgets LOCATION_Release)
if(WIN32)
get_target_property(qt_windows_plugin_location Qt5::QWindowsIntegrationPlugin LOCATION_Release)
list(APPEND QT5_RUNTIME_RELEASE ${qt_windows_plugin_location})
endif()
list(APPEND QT5_RUNTIME_RELEASE ${qt_widgets_location})
foreach(qt_lib ${qt_libs})
get_target_property(qt_lib_location ${qt_lib} LOCATION_Release)
@ -75,6 +79,10 @@ if(COPY_QT_LIBS)
get_target_property(qt_libs Qt5::Widgets INTERFACE_LINK_LIBRARIES)
get_target_property(qt_widgets_location Qt5::Widgets LOCATION_Debug)
if(WIN32)
get_target_property(qt_windows_plugin_location Qt5::QWindowsIntegrationPlugin LOCATION_Debug)
list(APPEND QT5_RUNTIME_RELEASE ${qt_windows_plugin_location})
endif()
list(APPEND QT5_RUNTIME_DEBUG ${qt_widgets_location})
foreach(qt_lib ${qt_libs})
get_target_property(qt_lib_location ${qt_lib} LOCATION_Debug)