Fix build for lib only without apps. Still todo is to fix the whole build with apps.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@400 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -39,19 +39,24 @@ endfunction(gp_item_default_embedded_path_override)
|
||||
|
||||
include (BundleUtilities)
|
||||
|
||||
# copy qt plugins to bundle
|
||||
file (GLOB _plugins "@CMAKE_BINARY_DIR@/Build/OpenFlipper.app/Contents/Resources/Plugins/*.so")
|
||||
file (GLOB_RECURSE _qtplugins "@QT_PLUGINS_DIR@/*.bundle")
|
||||
foreach (_qtp ${_qtplugins})
|
||||
if ( @BUILD_APPS@ )
|
||||
message("Fixing up bundle ...")
|
||||
|
||||
# copy qt plugins to bundle
|
||||
file (GLOB _plugins "@CMAKE_BINARY_DIR@/Build/OpenFlipper.app/Contents/Resources/Plugins/*.so")
|
||||
file (GLOB_RECURSE _qtplugins "@QT_PLUGINS_DIR@/*.bundle")
|
||||
foreach (_qtp ${_qtplugins})
|
||||
get_filename_component(_dir "${_qtp}" PATH)
|
||||
list(APPEND _qtdirs "${_dir}")
|
||||
endforeach ()
|
||||
endforeach ()
|
||||
|
||||
# Get library paths
|
||||
get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH)
|
||||
# Get library paths
|
||||
get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH)
|
||||
|
||||
# fix all dependencies
|
||||
fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/QtViewer "${_qtplugins}" "/usr/lib;${_qtdirs};${_GlutDir}")
|
||||
# fix all dependencies
|
||||
fixup_bundle (@CMAKE_BINARY_DIR@/Build/bin/QtViewer "${_qtplugins}" "/usr/lib;${_qtdirs};${_GlutDir}")
|
||||
|
||||
endif()
|
||||
|
||||
# create qt plugin configuration file
|
||||
# file(WRITE "@CMAKE_BINARY_DIR@/Build/OpenMesh.app/Contents/Resources/qt.conf" "[Paths]\nPlugins = Resources/QtPlugins")
|
||||
|
||||
Reference in New Issue
Block a user