Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem3/cmake/PackageConfigMinGW.cmake @ 2708

Last change on this file since 2708 was 2674, checked in by rgrieder, 16 years ago

Added package config scripts after all (were in the dependency archive before) after all.

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
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:
23 #    Sets the library directories when using precompiled dependency archives
24 #  Note:
25 #    When setting ENV${} variables, make sure to use quotes for lists
26 #
27
28IF(MINGW)
29
30  # MAJOR: Interface breaking change somewhere or added a new library
31  # MINOR: Updated a library to a new version
32  # PATCH: Bug fix or smaller things
33  SET(DEPENDENCY_VERSION 0.0.1)
34
35  MESSAGE(STATUS "Using library package for the dependencies.")
36
37  # 64 bit system?
38  IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
39    SET(BINARY_POSTFIX x64)
40  ELSE()
41    SET(BINARY_POSTFIX x86)
42  ENDIF()
43
44  SET(DEP_INCLUDE_DIR ${DEPENDENCY_PACKAGE_DIR}/include)
45  SET(DEP_LIBRARY_DIR ${DEPENDENCY_PACKAGE_DIR}/lib/mingw-${BINARY_POSTFIX})
46  SET(DEP_BINARY_DIR  ${DEPENDENCY_PACKAGE_DIR}/bin/mingw-${BINARY_POSTFIX})
47
48  # Also the directory with the runtime libraries
49  SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${DEP_BINARY_DIR})
50
51  # Sets the library path for the FIND_LIBRARY
52  SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR} ${DEP_BINARY_DIR})
53
54  # Include paths and other special treatments
55  SET(ENV{ALUTDIR}               ${DEP_INCLUDE_DIR}/freealut-1.1.0)
56  SET(ENV{BOOST_ROOT}            ${DEP_INCLUDE_DIR}/boost-1.37.0)
57  SET(ENV{CEGUIDIR}              ${DEP_INCLUDE_DIR}/cegui-0.6.2)
58  SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx-2007.aug)
59  SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet-1.2)
60  SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua-5.1.4)
61  SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR}/libogg-1.1.3)
62  SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR}/libvorbis-1.2.0)
63  SET(ENV{OGRE_HOME}             ${DEP_INCLUDE_DIR}/ogre-1.4.9)
64  SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
65  SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal-1.1)
66  LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl-8.5.2/include)
67  SET(TCL_LIBRARY                ${DEP_BINARY_DIR}/tcl85.dll CACHE FILEPATH "")
68  LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib-1.2.3/include)
69  SET(ZLIB_LIBRARY               ${DEP_BINARY_DIR}/zlib1.dll CACHE FILEPATH "")
70
71ENDIF(MINGW)
Note: See TracBrowser for help on using the repository browser.