Commit fb8c6672 authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis: bundle for macos

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5793 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 226b69af
...@@ -5,9 +5,10 @@ project (OpenFlipper) ...@@ -5,9 +5,10 @@ project (OpenFlipper)
# add our macro directory to cmake search path # add our macro directory to cmake search path
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
# set (GLUT_ROOT_PATH C:/devel/glut) set (GLUT_ROOT_PATH C:/devel/glut)
include (common) include (common)
include (package)
find_package (OpenGL) find_package (OpenGL)
if (NOT OPENGL_FOUND) if (NOT OPENGL_FOUND)
...@@ -24,6 +25,8 @@ if (NOT GLUT_FOUND) ...@@ -24,6 +25,8 @@ if (NOT GLUT_FOUND)
message (FATAL_ERROR "GLUT not found!") message (FATAL_ERROR "GLUT not found!")
endif () endif ()
of_set (OPENFLIPPER_PLUGINS "")
add_subdirectory (OpenMesh/Core) add_subdirectory (OpenMesh/Core)
add_subdirectory (OpenMesh/Tools) add_subdirectory (OpenMesh/Tools)
add_subdirectory (ACG) add_subdirectory (ACG)
...@@ -32,3 +35,14 @@ add_subdirectory (OpenFlipper/CoreApp) ...@@ -32,3 +35,14 @@ add_subdirectory (OpenFlipper/CoreApp)
add_plugins () add_plugins ()
if (APPLE)
configure_file ("${CMAKE_SOURCE_DIR}/cmake/fixbundle.cmake.in"
"${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE)
add_custom_target (fixbundle ALL
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.cmake"
)
add_dependencies (fixbundle OpenFlipper PluginLib ${OPENFLIPPER_PLUGINS})
# install
install (DIRECTORY ${CMAKE_BINARY_DIR}/Build/OpenFlipper.app DESTINATION .)
endif ()
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