From 0b28f7f6579098f332f8f9c8a9f0594cf92ad585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 2 Jul 2014 07:59:03 +0000 Subject: [PATCH] Add dependencies and fixbundle for apps only if we build apps git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1098 fdac6126-5c0c-442c-9429-916003d36597 --- CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6eb068b0..300c2eea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,9 +112,9 @@ if(${PROJECT_NAME} MATCHES "OpenMesh") endif() endif() - - - if (APPLE) + + # On apple we do a fixbundle, which is only necessary for the apps and not for the libs + if (APPLE AND BUILD_APPS) # prepare bundle generation cmake file and add a build target for it configure_file ("${CMAKE_SOURCE_DIR}/cmake/fixbundle.cmake.in" "${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE) @@ -125,10 +125,9 @@ if(${PROJECT_NAME} MATCHES "OpenMesh") # Required for Snow leopard, and the latest qt. Then the resources have to be copied if ( EXISTS "/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/qt_menu.nib" ) add_custom_command(TARGET OpenMesh POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory "/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/qt_menu.nib" "${CMAKE_BINARY_DIR}/Build/Libraries/qt_menu.nib" - ) + COMMAND ${CMAKE_COMMAND} -E copy_directory "/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/qt_menu.nib" + "${CMAKE_BINARY_DIR}/Build/Libraries/qt_menu.nib" ) endif () - endif () endif()