Commit 54ab82f8 authored by Jan Möbius's avatar Jan Möbius

Changed paths for Build to build only in Build dir, Disabled fixbundle until i really get a fix

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@402 fdac6126-5c0c-442c-9429-916003d36597
parent 26bccf29
......@@ -74,6 +74,12 @@ if (WIN32)
if (NOT EXISTS ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR})
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR})
endif ()
elseif (APPLE)
set (ACG_PROJECT_DATADIR "share/${CMAKE_PROJECT_NAME}")
set (ACG_PROJECT_LIBDIR "lib/${CMAKE_PROJECT_NAME}")
set (CMAKE_LIBRARY_OUTPUT_DIR "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}")
set (ACG_PROJECT_PLUGINDIR "lib/${CMAKE_PROJECT_NAME}/plugins")
set (ACG_PROJECT_BINDIR "bin")
else ()
set (ACG_PROJECT_DATADIR "share/${CMAKE_PROJECT_NAME}")
set (ACG_PROJECT_LIBDIR "lib/${CMAKE_PROJECT_NAME}")
......
......@@ -39,24 +39,24 @@ endfunction(gp_item_default_embedded_path_override)
include (BundleUtilities)
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 ()
# 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}")
endif()
#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 ()
# # 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}")
#
#endif()
# create qt plugin configuration file
# 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