Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/shader_HS18/cmake/LibraryConfigTardis.cmake @ 12189

Last change on this file since 12189 was 12021, checked in by patricwi, 6 years ago

Changed cmake config file to ogre 1.9

  • Property svn:eol-style set to native
File size: 3.6 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 #    Adrian Friedli
22 #  Description:
23 #    Sets the correct find script paths on the ETH Tardis workstations.
24 #    Also sets the TARDIS variable.
25 #
26
27IF(LINUX AND EXISTS /etc/hostname)
28  FILE(STRINGS /etc/hostname HOSTNAME LIMIT_COUNT 1)
29  IF(${HOSTNAME} MATCHES "^tardis-[a-z][0-9][0-9]$")
30    SET (TARDIS ON)
31  ENDIF()
32ENDIF()
33
34IF(TARDIS)
35  MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.")
36
37  SET(DO_NOT_UNLOAD_PLUGINS ON)
38
39#  SET(CMAKE_C_COMPILER "gcc-4.1.1")
40#  SET(CMAKE_CXX_COMPILER "g++-4.1.1")
41
42#  LIST(APPEND CMAKE_INCLUDE_PATH "/usr/pack/cegui-0.6.2-sd")
43#  LIST(APPEND CMAKE_LIBRARY_PATH "/usr/pack/cegui-0.6.2-sd/amd64-debian-linux5.0")
44#  LIST(APPEND CMAKE_INCLUDE_PATH "/usr/pack/ogre-1.6.1-sd")
45#  LIST(APPEND CMAKE_LIBRARY_PATH "/usr/pack/ogre-1.6.1-sd/amd64-debian-linux5.0")
46
47  #Solution to the problem that on the new tardis machines, we needed to run Orxonox with the command
48  # bash && LD_LIBRARY_PATH=/usr/pack/libcg-1.5-sd/amd64-debian-linux3.1/lib/ ./run
49  link_directories(/usr/pack/libcg-1.5-sd/amd64-debian-linux3.1/lib/)
50  #SET(ENV{CEGUIDIR}    "/usr/pack/cegui-0.6.2-sd;/usr/pack/cegui-0.6.2-sd/i686-debian-linux5.0")
51  #SET(ENV{ENETDIR}     "/usr/pack/enet-1.2-sd;/usr/pack/enet-1.2-sd/i686-debian-linux4.0")
52  #SET(ENV{ALUTDIR}     "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
53  #SET(ENV{OGGDIR}      "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0")
54  #SET(ENV{VORBISDIR}   "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0")
55  #SET(ENV{LUA5.1_DIR}  "/usr/pack/lua-5.1.4-sd;/usr/pack/lua-5.1.4-sd/i686-debian-linux4.0")
56  #SET(ENV{OGRE_HOME}   "/usr/pack/ogre-1.4.9-sd;/usr/pack/ogre-1.4.9-sd/i686-debian-linux4.0")
57  #SET(ENV{OPENALDIR}   "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
58  #SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include")
59
60  # New paths for the new tardis system. The ogre includes need to be at ../dependencies.
61  SET(OGRE_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/ogre_src_v1-9-0/OgreMain/include/")
62  SET(OGRE_LIBRARY_OPTIMIZED "/usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0")
63  SET(OGRE_PLUGIN_Plugin_ParticleFX_OPTIMIZED "/usr/lib/x86_64-linux-gnu/OGRE-1.9.0/Plugin_ParticleFX.so")
64  SET(OGRE_PLUGIN_RenderSystem_GL_OPTIMIZED "/usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so")
65
66
67  # Sandro fix: add flag that re-enables boost threads. This makes the combination
68  #             of GCC version > 4.7 and older libboost work. See
69  # http://stackoverflow.com/questions/5389853/doesnt-compile-if-included-boost-thread-in-linux-ubuntu10-10
70  #             for more information.
71  ADD_COMPILER_FLAGS("-D_GLIBCXX__PTHREADS=1" CXX CACHE)
72ENDIF(TARDIS)
Note: See TracBrowser for help on using the repository browser.