Commit 50a3f6e5 authored by Mike Kremer's avatar Mike Kremer

Fixing up bundles in Mac now works

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@352 fdac6126-5c0c-442c-9429-916003d36597
parent 5fe025d9
...@@ -50,11 +50,11 @@ if (APPLE) ...@@ -50,11 +50,11 @@ if (APPLE)
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.cmake" COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.cmake"
) )
# let bundle generation depend on all targets # let bundle generation depend on all targets
add_dependencies (fixbundle QtViewer DecimaterGui) add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui)
# install bundle # install bundle
install (DIRECTORY ${CMAKE_BINARY_DIR}/Build/OpenMesh.app DESTINATION . #install (DIRECTORY ${CMAKE_BINARY_DIR}/Build/OpenMesh.app DESTINATION .
USE_SOURCE_PERMISSIONS) # USE_SOURCE_PERMISSIONS)
endif () endif ()
# ======================================================================== # ========================================================================
......
...@@ -52,11 +52,16 @@ get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH) ...@@ -52,11 +52,16 @@ get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH)
get_filename_component(_GlewDir "@GLEW_LIBRARY@" PATH) get_filename_component(_GlewDir "@GLEW_LIBRARY@" PATH)
# fix all dependencies # fix all dependencies
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/OpenMesh.app" "" "${_GlutDir};${_GlewDir}") fixup_bundle ("@CMAKE_BINARY_DIR@/Build/bin/DecimaterGui" "" "${_GlutDir};${_GlewDir}")
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/bin/ProgViewer" "" "${_GlutDir};${_GlewDir}")
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/bin/QtViewer" "" "${_GlutDir};${_GlewDir}")
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/bin/SubdividerGui" "" "${_GlutDir};${_GlewDir}")
# fix all dependencies fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/DecimaterGui "${_qtplugins}" "/usr/lib;${_qtdirs}")
fixup_bundle (@CMAKE_BINARY_DIR@/Build/OpenMesh.app "${_qtplugins}" "/usr/lib;${_qtdirs}") fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/ProgViewer "${_qtplugins}" "/usr/lib;${_qtdirs}")
fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/QtViewer "${_qtplugins}" "/usr/lib;${_qtdirs}")
fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/SubdividerGui "${_qtplugins}" "/usr/lib;${_qtdirs}")
# create qt plugin configuration file # create qt plugin configuration file
file(WRITE "@CMAKE_BINARY_DIR@/Build/OpenMesh.app/Contents/Resources/qt.conf" "[Paths]\nPlugins = Resources/QtPlugins") # file(WRITE "@CMAKE_BINARY_DIR@/Build/OpenMesh.app/Contents/Resources/qt.conf" "[Paths]\nPlugins = Resources/QtPlugins")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment