diff --git a/src/OpenMesh/Apps/CMakeLists.txt b/src/OpenMesh/Apps/CMakeLists.txt index 1584de5d..c5f65e4f 100644 --- a/src/OpenMesh/Apps/CMakeLists.txt +++ b/src/OpenMesh/Apps/CMakeLists.txt @@ -85,6 +85,16 @@ if ( BUILD_APPS ) if ( WIN32 ) FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" ) 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() else () # QT ,Opengl or glut not found diff --git a/src/OpenMesh/Apps/Qt/qt.conf.in b/src/OpenMesh/Apps/Qt/qt.conf.in new file mode 100644 index 00000000..1c7b7353 --- /dev/null +++ b/src/OpenMesh/Apps/Qt/qt.conf.in @@ -0,0 +1,2 @@ +[Paths] +Plugins = plugins