Install qt plugins and qt.conf

This commit is contained in:
Jan Möbius
2016-04-29 10:15:48 +02:00
parent 9f51e9fa51
commit ebfeb26130
2 changed files with 12 additions and 0 deletions

View File

@@ -85,6 +85,16 @@ if ( BUILD_APPS )
if ( WIN32 ) if ( WIN32 )
FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" ) FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" )
INSTALL(FILES ${files_install_app_dlls} DESTINATION . ) INSTALL(FILES ${files_install_app_dlls} DESTINATION . )
# platform plugins for qt shoulb be installed along with the apps to run on the target systems
if (EXISTS ${CMAKE_BINARY_DIR}/Build/plugins/platform )
FILE(GLOB files_install_app_platform_dlls "${CMAKE_BINARY_DIR}/Build/plugins/platform/*.dll" )
INSTALL(FILES ${files_install_app_platform_dlls} DESTINATION . )
# Create a qt.conf file to find plugins on windows
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Qt/qt.conf.in Build/qt.conf COPYONLY )
endif()
endif() endif()
else () # QT ,Opengl or glut not found else () # QT ,Opengl or glut not found

View File

@@ -0,0 +1,2 @@
[Paths]
Plugins = plugins