# # ORXONOX - the hottest 3D action shooter ever to exist # > www.orxonox.net < # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # # Author: # Reto Grieder # Description: # OS X package configuration # INCLUDE(CheckPackageVersion) CHECK_PACKAGE_VERSION(3.0) IF(NOT _INTERNAL_PACKAGE_MESSAGE) MESSAGE(STATUS "Using library package for the dependencies.") # The following shell script sets the appropriate install_names for our libraries # and therefore it must be run before anything else is set, dep-package-wise. IF(NOT EXISTS ${CMAKE_BINARY_DIR}/dep_pack_install_log.keep_me) MESSAGE(STATUS "Installing Mac OS X dependency package to current dir.") EXECUTE_PROCESS( COMMAND ${DEPENDENCY_PACKAGE_DIR}/install_dependencies.sh WORKING_DIRECTORY ${DEPENDENCY_PACKAGE_DIR} OUTPUT_FILE ${CMAKE_BINARY_DIR}/dep_pack_install_log.keep_me ) ENDIF() SET(_INTERNAL_PACKAGE_MESSAGE 1 CACHE INTERNAL "Do not edit!" FORCE) ENDIF() SET(DEP_INCLUDE_DIR ${DEPENDENCY_PACKAGE_DIR}/include) SET(DEP_LIBRARY_DIR ${DEPENDENCY_PACKAGE_DIR}/lib) SET(DEP_BINARY_DIR ${DEPENDENCY_PACKAGE_DIR}/bin) SET(DEP_FRAMEWORK_DIR ${DEPENDENCY_PACKAGE_DIR}/Library/Frameworks) # Sets the library and framwork paths for the FIND_LIBRARY commands SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR}) SET(CMAKE_FRAMEWORK_PATH ${DEP_FRAMEWORK_DIR}) # Include paths and other special treatments SET(ENV{BOOST_ROOT} ${DEPENDENCY_PACKAGE_DIR}) SET(ENV{OGGDIR} ${DEP_INCLUDE_DIR}) SET(ENV{VORBISDIR} ${DEP_INCLUDE_DIR}) SET(ENV{OGRE_PLUGIN_DIR} ${DEP_BINARY_DIR}) # Linking to OGRE requires linking to the boost threading library SET(OGRE_NEEDS_BOOST TRUE) ### INSTALL ### # Tcl script library # TODO: How does this work on OS X? # Concerning all OS X install procedures: use CPACK #INSTALL( # DIRECTORY ${DEP_LIBRARY_DIR}/tcl/ # DESTINATION lib/tcl #)