Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/CMakeLists.txt @ 341

Last change on this file since 341 was 341, checked in by rgrieder, 16 years ago
  • removed folder src/class_hierarchy
  • removed a few unnec. files in src/
  • added a few files in src/orxonox to make weapon system and hud work
  • restructured all CMLs
  • adjusted all the #include directives (only one include directory now: src)
  • moved ENET library linkage to CML in src/orxonox
File size: 2.1 KB
Line 
1PROJECT(Orxonox)
2
3#set some global variables, which are use throughout the project
4
5#Create some verbose output
6SET(CMAKE_VERBOSE_MAKEFILE TRUE)
7
8# set eNet search path
9SET(Boost_INCLUDE_DIR "/usr/include/boost/")
10
11#force-set the compile on tardis machines, as default points to g++-3.3
12# only run this test on a lunix/unix machine
13IF (UNIX)
14  FIND_PROGRAM(UNAME_CMD "uname"
15        PATHS "/usr/bin /bin")
16  IF(NOT UNAME_CMD)
17        MESSAGE("Unable to find uname. Tardis-Check cannot be done.")
18  ENDIF(NOT UNAME_CMD)
19  EXECUTE_PROCESS(
20        COMMAND "${UNAME_CMD}" "-n"
21        RESULT_VARIABLE UNAME_RV
22        ERROR_VARIABLE UNAME_EV
23        OUTPUT_VARIABLE UNAME_OV)
24
25  IF (NOT "${UNAME_RV}" STREQUAL "0")
26        MESSAGE("ERROR: uname terminated unclean.")
27  ENDIF (NOT "${UNAME_RV}" STREQUAL "0")
28# check wheter we are on a tardis INCLUDEmachine
29  IF ("${UNAME_OV}" MATCHES "tardis")
30    SET (IS_TARDIS "tardis")
31  ENDIF ("${UNAME_OV}" MATCHES "tardis")
32  # if on tardis change compiler
33  IF (IS_TARDIS)
34  MESSAGE("System is a TARDIS: Setting Compiler to g++-4.1.1")
35  SET(CMAKE_CXX_COMPILER "g++-4.1.1")
36# reset eNet serach path
37  SET(Boost_INCLUDE_DIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/include/boost-1_34_1")
38  ENDIF(IS_TARDIS)
39ENDIF (UNIX)
40
41
42#This sets where to look for "Find*.cmake" files
43SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
44# SET(BOOST_LIBDIR /usr/pack/boost-1.33.1-mo/i686-debian-linux3.1/lib/)
45# SET(BOOST_INCDIR /usr/pack/boost-1.33.1-mo/i686-debian-linux3.1/include/)
46
47#Performs the search and sets the variables
48FIND_PACKAGE(OGRE)
49FIND_PACKAGE(OIS)
50FIND_PACKAGE(CEGUI)
51FIND_PACKAGE(CEGUI_OGRE)
52FIND_PACKAGE(ENet)
53FIND_PACKAGE(Boost)
54
55#Sets the search paths for the linking
56LINK_DIRECTORIES(
57        ${OGRE_LIB_DIR}
58        ${OIS_LIB_DIR}
59        ${CEGUI_LIB_DIR}
60        ${CEGUI_OGRE_LIB_DIR}
61        ${ENet_LIBRARY}
62        ${Boost_LIBRARY_DIRS}
63)
64
65#Sets the search path for include files
66INCLUDE_DIRECTORIES(
67        ${OGRE_INCLUDE_DIR}
68        ${OIS_INCLUDE_DIR}
69        ${CEGUI_INCLUDE_DIR}
70        ${CEGUI_OGRE_INCLUDE_DIR}
71        ${ENet_INCLUDE_DIR}
72        ${Boost_INCLUDE_DIRS}
73)
74
75
76#add main source dir
77ADD_SUBDIRECTORY(src)
78
Note: See TracBrowser for help on using the repository browser.