[5695] | 1 | # |
---|
| 2 | # ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | # > www.orxonox.net < |
---|
| 4 | # |
---|
| 5 | # This program is free software; you can redistribute it and/or |
---|
| 6 | # modify it under the terms of the GNU General Public License |
---|
| 7 | # as published by the Free Software Foundation; either version 2 |
---|
| 8 | # of the License, or (at your option) any later version. |
---|
| 9 | # |
---|
| 10 | # This program is distributed in the hope that it will be useful, |
---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 13 | # GNU General Public License for more details. |
---|
| 14 | # |
---|
| 15 | # You should have received a copy of the GNU General Public License along |
---|
| 16 | # with this program; if not, write to the Free Software Foundation, |
---|
| 17 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 18 | # |
---|
| 19 | # |
---|
| 20 | # Author: |
---|
| 21 | # Reto Grieder |
---|
| 22 | # Description: |
---|
[7582] | 23 | # OS X package configuration |
---|
[5695] | 24 | # |
---|
[3167] | 25 | |
---|
[7582] | 26 | INCLUDE(CheckPackageVersion) |
---|
[5923] | 27 | |
---|
[11278] | 28 | CHECK_PACKAGE_VERSION(3.0) |
---|
[3167] | 29 | |
---|
[5695] | 30 | IF(NOT _INTERNAL_PACKAGE_MESSAGE) |
---|
| 31 | MESSAGE(STATUS "Using library package for the dependencies.") |
---|
[11278] | 32 | |
---|
[8285] | 33 | # The following shell script sets the appropriate install_names for our libraries |
---|
| 34 | # and therefore it must be run before anything else is set, dep-package-wise. |
---|
[8349] | 35 | IF(NOT EXISTS ${CMAKE_BINARY_DIR}/dep_pack_install_log.keep_me) |
---|
| 36 | MESSAGE(STATUS "Installing Mac OS X dependency package to current dir.") |
---|
| 37 | EXECUTE_PROCESS( |
---|
| 38 | COMMAND ${DEPENDENCY_PACKAGE_DIR}/install_dependencies.sh |
---|
| 39 | WORKING_DIRECTORY ${DEPENDENCY_PACKAGE_DIR} |
---|
[11278] | 40 | OUTPUT_FILE ${CMAKE_BINARY_DIR}/dep_pack_install_log.keep_me |
---|
[8349] | 41 | ) |
---|
| 42 | ENDIF() |
---|
[5695] | 43 | SET(_INTERNAL_PACKAGE_MESSAGE 1 CACHE INTERNAL "Do not edit!" FORCE) |
---|
| 44 | ENDIF() |
---|
[3167] | 45 | |
---|
[8285] | 46 | SET(DEP_INCLUDE_DIR ${DEPENDENCY_PACKAGE_DIR}/include) |
---|
| 47 | SET(DEP_LIBRARY_DIR ${DEPENDENCY_PACKAGE_DIR}/lib) |
---|
| 48 | SET(DEP_BINARY_DIR ${DEPENDENCY_PACKAGE_DIR}/bin) |
---|
[7591] | 49 | SET(DEP_FRAMEWORK_DIR ${DEPENDENCY_PACKAGE_DIR}/Library/Frameworks) |
---|
[7224] | 50 | |
---|
[8285] | 51 | # Sets the library and framwork paths for the FIND_LIBRARY commands |
---|
| 52 | SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR}) |
---|
| 53 | SET(CMAKE_FRAMEWORK_PATH ${DEP_FRAMEWORK_DIR}) |
---|
[7582] | 54 | |
---|
[3167] | 55 | # Include paths and other special treatments |
---|
[8285] | 56 | SET(ENV{BOOST_ROOT} ${DEPENDENCY_PACKAGE_DIR}) |
---|
| 57 | SET(ENV{OGGDIR} ${DEP_INCLUDE_DIR}) |
---|
| 58 | SET(ENV{VORBISDIR} ${DEP_INCLUDE_DIR}) |
---|
| 59 | SET(ENV{OGRE_PLUGIN_DIR} ${DEP_BINARY_DIR}) |
---|
[3167] | 60 | |
---|
[8285] | 61 | # Linking to OGRE requires linking to the boost threading library |
---|
| 62 | SET(OGRE_NEEDS_BOOST TRUE) |
---|
| 63 | |
---|
[3167] | 64 | ### INSTALL ### |
---|
[3370] | 65 | |
---|
[5781] | 66 | # Tcl script library |
---|
[7582] | 67 | # TODO: How does this work on OS X? |
---|
[8285] | 68 | # Concerning all OS X install procedures: use CPACK |
---|
[7582] | 69 | #INSTALL( |
---|
| 70 | # DIRECTORY ${DEP_LIBRARY_DIR}/tcl/ |
---|
| 71 | # DESTINATION lib/tcl |
---|
| 72 | #) |
---|