[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Mon Feb 14 18:10:12 CET 2011
SVN commit 1220679 by kuemmel:
also deploy Qt's imageformat plugins
M +4 -3 CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1220678:1220679
@@ -288,15 +288,16 @@
set(app ${CMAKE_BINARY_DIR}/bin/${kst_binary_name}.app)
set(contents_dir ${kst_binary_name}.app/Contents)
- #TODO copy not intsall! install(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION ${contents_dir}/plugins COMPONENT Runtime)
+ #TODO copy not intsall!
+ install(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION ${CMAKE_BINARY_DIR}/bin/${contents_dir}/plugins COMPONENT Runtime)
file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "")
install(FILES ${CMAKE_BINARY_DIR}/qt.conf DESTINATION ${contents_dir}/Resources COMPONENT Runtime)
install(CODE
- "file(GLOB qt_plugins \"\${CMAKE_INSTALL_PREFIX}/${contents_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
+ "file(GLOB qt_plugins \"\${CMAKE_BINARY_DIR}/${contents_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
file(GLOB kst_plugins \"${CMAKE_BINARY_DIR}/bin/${contents_dir}/plugins/*${CMAKE_SHARED_MODULE_SUFFIX}\")
- set(libs \${qt_plugins_disbaled} \${kst_plugins})
+ set(libs \${qt_plugins} \${kst_plugins})
include(BundleUtilities)
fixup_bundle(\"${app}\" \"\${libs}\" \"${dir}\") "
COMPONENT RUNTIME)
More information about the Kst
mailing list