Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem/cmake/CheckTardis.cmake @ 2336

Last change on this file since 2336 was 2198, checked in by adrfried, 16 years ago

FindOGRE cleaned up

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1################# Tardis check ##################
2# This code checks whether the current machine  #
3# is an ETH tardis box.                         #
4#################################################
5
6# only run this test on a lunix/unix machine
7IF (UNIX)
8  FIND_PROGRAM(UNAME_CMD "uname"
9  PATHS "/usr/bin /bin")
10  IF(NOT UNAME_CMD)
11    MESSAGE(ERROR "Unable to find uname. Tardis-Check cannot be done.")
12  ENDIF(NOT UNAME_CMD)
13
14  # run uname -n to get nodename
15  EXECUTE_PROCESS(
16  COMMAND "${UNAME_CMD}" "-n"
17  RESULT_VARIABLE UNAME_RV
18  ERROR_VARIABLE UNAME_EV
19  OUTPUT_VARIABLE UNAME_OV)
20
21  IF (NOT "${UNAME_RV}" STREQUAL "0")
22    MESSAGE(ERROR "ERROR: uname terminated unclean.")
23  ENDIF (NOT "${UNAME_RV}" STREQUAL "0")
24
25  # check wheter we are on a tardis machine
26  IF ("${UNAME_OV}" MATCHES "tardis")
27    SET (IS_TARDIS ON)
28  ENDIF ("${UNAME_OV}" MATCHES "tardis")
29
30ENDIF (UNIX)
31
32MARK_AS_ADVANCED(IS_TARDIS)
33
34IF (IS_TARDIS)
35  MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.")
36  SET(CMAKE_C_COMPILER "gcc-4.1")
37  SET(CMAKE_CXX_COMPILER "g++-4.1")
38  #SET(Boost_ADDITIONAL_VERSIONS "1.36")
39  SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.34.1-sd/include")
40  SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib")
41  SET(ENV{LUA_DIR} "/usr/pack/lua-5.0.3-sd;/usr/pack/lua-5.0.3-sd/i686-debian-linux3.1")
42  SET(ENV{ALUTDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
43  SET(ENV{OPENALDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
44  SET(ENV{ENETDIR} "/usr/pack/enet-2007-sd;/usr/pack/enet-2007-sd/i686-debian-linux3.1")
45  SET(ENV{OGGVORBISDIR} "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0")
46  #SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include")
47  SET(ENV{CEGUIDIR} "/usr/pack/cegui-0.5.0-sd;/usr/pack/cegui-0.5.0-sd/i686-debian-linux3.1")
48  SET(ENV{OGREDIR} "/usr/pack/ogre-1.4.5-sd;/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1")
49ENDIF (IS_TARDIS)
50
51MARK_AS_ADVANCED(UNAME_CMD IS_TARDIS)
Note: See TracBrowser for help on using the repository browser.