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

Adapted fixup_bundle to work in Mac OSX

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent b66aa98f
......@@ -50,7 +50,7 @@ if (APPLE)
# let bundle generation depend on all targets
# add_dependencies (fixbundle OpenFlipper PluginLib ${OPENFLIPPER_PLUGINS})
add_dependencies (fixbundle QtViewer DecimaterGui)
# install bundle
......@@ -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/" "" "${_GlutDir};${_GlewDir}")
# fix all dependencies
fixup_bundle (@CMAKE_BINARY_DIR@/Build/ "${_plugins};${_qtplugins}" "/usr/lib;${_qtdirs}")
fixup_bundle (@CMAKE_BINARY_DIR@/Build/ "${_qtplugins}" "/usr/lib;${_qtdirs}")
# create qt plugin configuration file
file(WRITE "@CMAKE_BINARY_DIR@/Build/" "[Paths]\nPlugins = Resources/QtPlugins")
file(WRITE "@CMAKE_BINARY_DIR@/Build/" "[Paths]\nPlugins = Resources/QtPlugins")
Supports Markdown
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