| 1 | # |
|---|
| 2 | # ORXONOX - the hottest 3D action shooter ever to exist |
|---|
| 3 | # > www.orxonox.net < |
|---|
| 4 | # |
|---|
| 5 | # |
|---|
| 6 | # License notice: |
|---|
| 7 | # |
|---|
| 8 | # This program is free software; you can redistribute it and/or |
|---|
| 9 | # modify it under the terms of the GNU General Public License |
|---|
| 10 | # as published by the Free Software Foundation; either version 2 |
|---|
| 11 | # of the License, or (at your option) any later version. |
|---|
| 12 | # |
|---|
| 13 | # This program is distributed in the hope that it will be useful, |
|---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | # GNU General Public License for more details. |
|---|
| 17 | # |
|---|
| 18 | # You should have received a copy of the GNU General Public License |
|---|
| 19 | # along with this program; if not, write to the Free Software |
|---|
| 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 21 | # |
|---|
| 22 | # Author: |
|---|
| 23 | # Reto Grieder |
|---|
| 24 | # Co-authors: |
|---|
| 25 | # ... |
|---|
| 26 | # |
|---|
| 27 | |
|---|
| 28 | ################# MinGW config #################### |
|---|
| 29 | # Set the library directory when using precompiled |
|---|
| 30 | # tarballs for the dependencies under windows |
|---|
| 31 | ################################################### |
|---|
| 32 | |
|---|
| 33 | IF (MINGW AND LIBRARY_USE_PACKAGE_IF_SUPPORTED) |
|---|
| 34 | MESSAGE(STATUS "Running on MinGW. Using customized paths and options.") |
|---|
| 35 | |
|---|
| 36 | # Determine library directory |
|---|
| 37 | IF(EXISTS ${CMAKE_SOURCE_DIR}/libs) |
|---|
| 38 | SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/libs") |
|---|
| 39 | ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lis) |
|---|
| 40 | SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../libs") |
|---|
| 41 | ELSE(EXISTS ${CMAKE_SOURCE_DIR}/libs) |
|---|
| 42 | MESSAGE(FATAL_ERROR "Could not find dependency directory for the MinGW libraries") |
|---|
| 43 | ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/libs) |
|---|
| 44 | SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${MINGW_LIBRARY_DIR}) |
|---|
| 45 | |
|---|
| 46 | # Note: When setting ENV${} variables, make sure to use quotes when |
|---|
| 47 | # having multiple directories. |
|---|
| 48 | # Using BOOST_ROOT only does not work with CMake 2.6.0 (2.6.2 works though) |
|---|
| 49 | SET(BOOST_INCLUDEDIR "${MINGW_LIBRARY_DIR}/boost_1_34_1") |
|---|
| 50 | SET(BOOST_LIBRARYDIR "${MINGW_LIBRARY_DIR}/boost_1_34_1/stage/lib") |
|---|
| 51 | SET(ENV{CEGUIDIR} "${MINGW_LIBRARY_DIR}/cegui-0.6.1") |
|---|
| 52 | SET(ENV{ENETDIR} "${MINGW_LIBRARY_DIR}/enet-1.1") |
|---|
| 53 | SET(LINK_ENET_DYNAMIC FALSE) |
|---|
| 54 | SET(ENV{ALUTDIR} "${MINGW_LIBRARY_DIR}/freealut-1.1.0") |
|---|
| 55 | SET(ENV{OGGDIR} "${MINGW_LIBRARY_DIR}/libogg-1.1.3;${MINGW_LIBRARY_DIR}/libogg-1.1.3/src/.libs") |
|---|
| 56 | SET(ENV{VORBISDIR} "${MINGW_LIBRARY_DIR}/libvorbis-1.2.0;${MINGW_LIBRARY_DIR}/libvorbis-1.2.0/lib/.libs") |
|---|
| 57 | SET(ENV{OPENALDIR} "${MINGW_LIBRARY_DIR}/openal-0.0.8/common;${MINGW_LIBRARY_DIR}/openal-0.0.8/src/.libs") |
|---|
| 58 | SET(ENV{LUA_DIR} "${MINGW_LIBRARY_DIR}/lua-5.1.3") |
|---|
| 59 | SET(ENV{OGRE_HOME} "${MINGW_LIBRARY_DIR}/ogre/OgreMain;${MINGW_LIBRARY_DIR}") |
|---|
| 60 | SET(ENV{OGRE_PLUGIN_DIR} "${MINGW_LIBRARY_DIR}/ogre/Samples/Common") |
|---|
| 61 | SET(TCL_INCLUDE_PATH "${MINGW_LIBRARY_DIR}/tcl8.5.2/generic") |
|---|
| 62 | SET(TCL_LIBRARY "${MINGW_LIBRARY_DIR}/tcl8.5.2/win/tcl85.dll") |
|---|
| 63 | SET(ZLIB_INCLUDE_DIR "${MINGW_LIBRARY_DIR}/zlib/include") |
|---|
| 64 | SET(ZLIB_LIBRARY "${MINGW_LIBRARY_DIR}/zlib/libzlib.a") |
|---|
| 65 | SET(LINK_ZLIB_DYNAMIC FALSE) |
|---|
| 66 | IF ($ENV{DXSDK_DIR} STREQUAL "") |
|---|
| 67 | SET(ENV{DXSDK_DIR} "${MINGW_LIBRARY_DIR}/DXSDK") |
|---|
| 68 | ENDIF ($ENV{DXSDK_DIR} STREQUAL "") |
|---|
| 69 | ENDIF (MINGW AND LIBRARY_USE_PACKAGE_IF_SUPPORTED) |
|---|