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 Microsoft Visual Studio. |
---|
25 | # |
---|
26 | |
---|
27 | ###################### MSVC config ######################## |
---|
28 | # Set the library directories when using Visual Studio. # |
---|
29 | |
---|
30 | IF(MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED) |
---|
31 | MESSAGE(STATUS "Running on MSVC. Using customized paths and options.") |
---|
32 | |
---|
33 | # Determine library directory |
---|
34 | IF(EXISTS ${CMAKE_SOURCE_DIR}/dependencies/orxonox_vc8) |
---|
35 | SET(MSVC_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/dependencies/orxonox_vc8") |
---|
36 | ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lib_dist/vc8/dependencies/orxonox_vc8) |
---|
37 | SET(MSVC_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../lib_dist/vc8/dependencies/orxonox_vc8") |
---|
38 | ELSE() |
---|
39 | MESSAGE(FATAL_ERROR "Could not find dependency directory for the Visual Studio libraries") |
---|
40 | ENDIF() |
---|
41 | SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${MSVC_LIBRARY_DIR}/bin) |
---|
42 | |
---|
43 | # Set variables for the include directories and the libraries |
---|
44 | # Note: When setting ENV${} variables, make sure to use quotes when |
---|
45 | # having multiple directories. |
---|
46 | SET(ENV{BOOST_ROOT} ${MSVC_LIBRARY_DIR}/boost-1.35.0) |
---|
47 | SET(ENV{CEGUIDIR} ${MSVC_LIBRARY_DIR}/cegui-0.6.1) |
---|
48 | SET(ENV{ENETDIR} ${MSVC_LIBRARY_DIR}/enet-1.2) |
---|
49 | SET(ENV{ALUTDIR} ${MSVC_LIBRARY_DIR}/freealut-1.1.0) |
---|
50 | SET(ENV{OGGDIR} ${MSVC_LIBRARY_DIR}/libogg-1.1.3) |
---|
51 | SET(ENV{VORBISDIR} ${MSVC_LIBRARY_DIR}/libvorbis-1.2.0) |
---|
52 | SET(ENV{OPENALDIR} ${MSVC_LIBRARY_DIR}/openal-1.1) |
---|
53 | SET(ENV{LUA_DIR} ${MSVC_LIBRARY_DIR}/lua-5.1.3) |
---|
54 | SET(ENV{OGRE_HOME} ${MSVC_LIBRARY_DIR}/ogre-1.4.9) |
---|
55 | SET(ENV{OGRE_PLUGIN_DIR} ${MSVC_LIBRARY_DIR}/bin) |
---|
56 | SET(TCL_INCLUDE_PATH ${MSVC_LIBRARY_DIR}/tcl-8.5.5/include) |
---|
57 | SET(TCL_LIBRARY ${MSVC_LIBRARY_DIR}/tcl-8.5.5/lib/tcl85.lib) |
---|
58 | SET(ZLIB_INCLUDE_DIR ${MSVC_LIBRARY_DIR}/zlib-1.2.3/include) |
---|
59 | SET(ZLIB_LIBRARY optimized ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib.lib |
---|
60 | debug ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib_d.lib) |
---|
61 | IF($ENV{DXSDK_DIR} STREQUAL "") |
---|
62 | SET(ENV{DXSDK_DIR} ${MSVC_LIBRARY_DIR}/directx-sdk-aug-2007) |
---|
63 | ENDIF() |
---|
64 | |
---|
65 | ENDIF(MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED) |
---|