Commit 5fe025d9 authored by Mike Kremer's avatar Mike Kremer

Adapted fixup_bundle to work in Mac OSX

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@351 fdac6126-5c0c-442c-9429-916003d36597
parent b66aa98f
......@@ -50,7 +50,7 @@ if (APPLE)
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.cmake"
)
# let bundle generation depend on all targets
# add_dependencies (fixbundle OpenFlipper PluginLib ${OPENFLIPPER_PLUGINS})
add_dependencies (fixbundle QtViewer DecimaterGui)
# install bundle
install (DIRECTORY ${CMAKE_BINARY_DIR}/Build/OpenMesh.app DESTINATION .
......
......@@ -47,9 +47,16 @@ foreach (_qtp ${_qtplugins})
list(APPEND _qtdirs "${_dir}")
endforeach ()
# Get library paths
get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH)
get_filename_component(_GlewDir "@GLEW_LIBRARY@" PATH)
# fix all dependencies
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/OpenMesh.app" "" "${_GlutDir};${_GlewDir}")
# fix all dependencies
fixup_bundle (@CMAKE_BINARY_DIR@/Build/OpenFlipper.app "${_plugins};${_qtplugins}" "/usr/lib;${_qtdirs}")
fixup_bundle (@CMAKE_BINARY_DIR@/Build/OpenMesh.app "${_qtplugins}" "/usr/lib;${_qtdirs}")
# create qt plugin configuration file
file(WRITE "@CMAKE_BINARY_DIR@/Build/OpenFlipper.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