From: <si...@us...> - 2014-10-14 13:27:14
|
Revision: 1344 http://sourceforge.net/p/qterm/code/1344 Author: sidos Date: 2014-10-14 13:27:11 +0000 (Tue, 14 Oct 2014) Log Message: ----------- install plugins for Qt5 on OS X Modified Paths: -------------- trunk/qterm/src/CMakeLists.txt Modified: trunk/qterm/src/CMakeLists.txt =================================================================== --- trunk/qterm/src/CMakeLists.txt 2014-10-14 13:12:19 UTC (rev 1343) +++ trunk/qterm/src/CMakeLists.txt 2014-10-14 13:27:11 UTC (rev 1344) @@ -299,8 +299,17 @@ endif(WIN32 AND MINGW) if (APPLE) install(TARGETS ${PROGRAME} DESTINATION bin) - install(DIRECTORY ${QT_PLUGINS_DIR}/imageformats DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/PlugIns) - install(DIRECTORY ${QT_PLUGINS_DIR}/codecs DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/PlugIns) + if(QT5) + foreach(plugin ${Qt5Gui_PLUGINS}) + get_target_property(_loc ${plugin} LOCATION) + get_filename_component(_plugindir ${_loc} PATH) + get_filename_component(_pluginname ${_plugindir} NAME) + install(FILES ${_loc} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/PlugIns/${_pluginname}) + endforeach() + else(QT5) + install(DIRECTORY ${QT_PLUGINS_DIR}/imageformats DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/PlugIns) + install(DIRECTORY ${QT_PLUGINS_DIR}/codecs DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/PlugIns) + endif(QT5) install(CODE " file(WRITE \"${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/Resources/qt.conf\" \"[Paths]\nPlugIns=PlugIns\") " COMPONENT Runtime) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |