Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/cmake/LibraryConfigMinGW.cmake @ 2626

Last change on this file since 2626 was 2626, checked in by rgrieder, 15 years ago

Added license text to all CMake files except to the subdirectoties of the libraries.
Also adjusted some the Find script documentation and wrote Descriptions for every file not in src/.

  • Property svn:eol-style set to native
  • Property svn:mergeinfo set to (toggle deleted branches)
    /code/branches/buildsystem/cmake/CheckOrxonoxWinDeps.cmakemergedeligible
    /code/branches/ceguilua/cmake/CheckOrxonoxWinDeps.cmake1802-1808
    /code/branches/core3/cmake/CheckOrxonoxWinDeps.cmake1572-1739
    /code/branches/gcc43/cmake/CheckOrxonoxWinDeps.cmake1580
    /code/branches/gui/cmake/CheckOrxonoxWinDeps.cmake1635-1723
    /code/branches/input/cmake/CheckOrxonoxWinDeps.cmake1629-1636
    /code/branches/objecthierarchy/cmake/CheckOrxonoxWinDeps.cmake1911-2085,​2100,​2110-2169
    /code/branches/pickups/cmake/CheckOrxonoxWinDeps.cmake1926-2086
    /code/branches/questsystem/cmake/CheckOrxonoxWinDeps.cmake1894-2088
    /code/branches/questsystem2/cmake/CheckOrxonoxWinDeps.cmake2107-2259
    /code/branches/script_trigger/cmake/CheckOrxonoxWinDeps.cmake1295-1953,​1955
    /code/branches/weapon/cmake/CheckOrxonoxWinDeps.cmake1925-2094
File size: 3.1 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 #    on Windows with MinGW.
25 #
26 
27
28IF(MINGW AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
29  MESSAGE(STATUS "Running on MinGW. Using customized paths and options.")
30
31  # Determine library directory
32  IF(EXISTS ${CMAKE_SOURCE_DIR}/libs)
33    SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/libs")
34  ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lis)
35    SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../libs")
36  ELSE()
37    MESSAGE(FATAL_ERROR "Could not find dependency directory for the MinGW libraries")
38  ENDIF()
39  SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${MINGW_LIBRARY_DIR})
40
41  # Note: When setting ENV${} variables, make sure to use quotes when
42  #       having multiple directories.
43  # Using BOOST_ROOT only does not work with CMake 2.6.0 (2.6.2 works though)
44  SET(BOOST_INCLUDEDIR      "${MINGW_LIBRARY_DIR}/boost_1_34_1")
45  SET(BOOST_LIBRARYDIR      "${MINGW_LIBRARY_DIR}/boost_1_34_1/stage/lib")
46  SET(ENV{CEGUIDIR}         "${MINGW_LIBRARY_DIR}/cegui-0.6.1")
47  SET(ENV{ENETDIR}          "${MINGW_LIBRARY_DIR}/enet-1.1")
48  SET(LINK_ENET_DYNAMIC     FALSE)
49  SET(ENV{ALUTDIR}          "${MINGW_LIBRARY_DIR}/freealut-1.1.0")
50  SET(ENV{OGGDIR}           "${MINGW_LIBRARY_DIR}/libogg-1.1.3;${MINGW_LIBRARY_DIR}/libogg-1.1.3/src/.libs")
51  SET(ENV{VORBISDIR}        "${MINGW_LIBRARY_DIR}/libvorbis-1.2.0;${MINGW_LIBRARY_DIR}/libvorbis-1.2.0/lib/.libs")
52  SET(ENV{OPENALDIR}        "${MINGW_LIBRARY_DIR}/openal-0.0.8/common;${MINGW_LIBRARY_DIR}/openal-0.0.8/src/.libs")
53  SET(ENV{LUA_DIR}          "${MINGW_LIBRARY_DIR}/lua-5.1.3")
54  SET(ENV{OGRE_HOME}        "${MINGW_LIBRARY_DIR}/ogre/OgreMain;${MINGW_LIBRARY_DIR}")
55  SET(ENV{OGRE_PLUGIN_DIR}  "${MINGW_LIBRARY_DIR}/ogre/Samples/Common")
56  SET(TCL_INCLUDE_PATH      "${MINGW_LIBRARY_DIR}/tcl8.5.2/generic")
57  SET(TCL_LIBRARY           "${MINGW_LIBRARY_DIR}/tcl8.5.2/win/tcl85.dll")
58  SET(ZLIB_INCLUDE_DIR      "${MINGW_LIBRARY_DIR}/zlib/include")
59  SET(ZLIB_LIBRARY          "${MINGW_LIBRARY_DIR}/zlib/libzlib.a")
60  SET(LINK_ZLIB_DYNAMIC    FALSE)
61  IF($ENV{DXSDK_DIR} STREQUAL "")
62    SET(ENV{DXSDK_DIR}      "${MINGW_LIBRARY_DIR}/DXSDK")
63  ENDIF()
64ENDIF(MINGW AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
Note: See TracBrowser for help on using the repository browser.