Changeset 1977
- Timestamp:
- Oct 20, 2008, 5:53:30 PM (16 years ago)
- Location:
- code/branches/buildsystem
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/CMakeLists.txt
r1975 r1977 13 13 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 14 14 15 # Check whether we are on a tardis box 15 # Check whether we are on a tardis box and set customized paths 16 16 INCLUDE(CheckTardis) 17 18 17 19 18 ############## Testing options ################## 20 19 21 OPTION(TESTING_ENABLED "Do you want to enable Testing") 22 IF (TESTING_ENABLED) 23 ENABLE_TESTING() 24 ENDIF(TESTING_ENABLED) 25 26 OPTION (NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike") 27 OPTION (NETWORKTRAFFIC_TESTING_ENABLED "Do you want to build dummyserver4 and dummyclient4") 28 20 #OPTION(TESTING_ENABLED "Do you want to enable Testing") 21 #IF (TESTING_ENABLED) 22 # ENABLE_TESTING() 23 #ENDIF(TESTING_ENABLED) 24 # 25 #OPTION (NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike") 26 #OPTION (NETWORKTRAFFIC_TESTING_ENABLED "Do you want to build dummyserver4 and dummyclient4") 29 27 30 28 ########## Compiler/Linker options ############## 31 29 32 # if on tardis change compiler and reset boost include directory33 IF(IS_TARDIS)34 MESSAGE("System is a TARDIS: Setting Compiler to g++-4.1.1")35 # Force-set the compiler on tardis machines, as default points to g++-3.336 SET(CMAKE_CXX_COMPILER "g++-4.1.1")37 # Reset Boost serach path38 SET(Boost_INCLUDE_DIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/include")39 ELSE (IS_TARDIS)40 IF (NOT WIN32)41 SET(Boost_INCLUDE_DIR "/usr/include/boost")42 ENDIF (NOT WIN32)43 ENDIF(IS_TARDIS)44 45 30 # Set binary output directories 46 31 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 47 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin /lib)32 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 48 33 49 # Set PATH on Windows, so it finds the DLLs 50 IF(CMAKE_HOST_WIN32) 51 FILE(TO_NATIVE_PATH "${LIBRARY_OUTPUT_PATH}" _native_library_path) 52 SET(ENV{PATH} "$ENV{PATH}:${_native_library_path}") 53 ENDIF(CMAKE_HOST_WIN32) 54 55 # Global compiler/linker flags. force -O2! 56 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O0 -Wall -g -ggdb") 57 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb") 34 # Global compiler/linker flags. 35 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb") 36 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb") 58 37 #SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O3") 59 38 #SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O3") … … 63 42 SET(CMAKE_SHARED_LINKER_FLAGS " --no-undefined") 64 43 SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined") 65 66 # Use 'cmake -D make_verb:1 path' to get verbose make output when compiling67 IF (MAKE_VERB)68 SET(CMAKE_VERBOSE_MAKEFILE TRUE)69 ENDIF (MAKE_VERB)70 71 44 72 45 ############### Library finding ################# … … 86 59 ENDIF ($ENV{ORXONOX_DEV}) 87 60 SET(Boost_LIB_SUFFIX_DEBUG vc80-mt-gd-1_35) 61 #MESSAGE(STATUS ${DEPENDENCY_DIR}) 88 62 ENDIF (MSVC) 89 63 ENDIF (WIN32) 90 MESSAGE(STATUS ${DEPENDENCY_DIR})91 64 92 65 # Performs the search and sets the variables 93 FIND_PACKAGE(OGRE )94 FIND_PACKAGE(CEGUI )95 # FIND_PACKAGE(CEGUI_OGRE)96 FIND_PACKAGE(ENet )66 FIND_PACKAGE(OGRE REQUIRED) 67 FIND_PACKAGE(CEGUI REQUIRED) 68 #FIND_PACKAGE(CEGUI_OGRE REQUIRED) 69 FIND_PACKAGE(ENet REQUIRED) 97 70 FIND_PACKAGE(Boost REQUIRED thread filesystem) 98 FIND_PACKAGE(OpenAL) 99 FIND_PACKAGE(ALUT) 100 FIND_PACKAGE(OggVorbis) 101 FIND_PACKAGE(ZLIB) 102 FIND_PACKAGE(Lua50) 103 FIND_PACKAGE(TCL) 104 FIND_PACKAGE(DirectX) 105 106 # Set the search paths for the linking 107 LINK_DIRECTORIES( 108 ${OGRE_LIB_DIR} 109 ${CEGUI_LIB_DIR} 110 # ${CEGUI_SCRIPT_LIB_DIR} 111 # ${CEGUI_OGRE_LIB_DIR} 112 ${ENet_LIBRARY} 113 ${Boost_LIBRARY_DIRS} 114 ${Zlib_LIBRARY_DIR} 115 ${TCL_LIBRARY} 116 ) 117 118 # Set the search paths for include files 119 INCLUDE_DIRECTORIES( 120 ${OGRE_INCLUDE_DIR} 121 ${CEGUI_INCLUDE_DIR} 122 # ${CEGUI_OGRE_INCLUDE_DIR} 123 ${ENet_INCLUDE_DIR} 124 ${Boost_INCLUDE_DIRS} 125 ${OPENAL_INCLUDE_DIR} 126 ${ALUT_INCLUDE_DIR} 127 ${VORBIS_INCLUDE_DIR} 128 ${OGG_INCLUDE_DIR} 129 # ${Lua_INCLUDE_DIR} 130 ${TCL_INCLUDE_PATH} 131 ${DirectX_INCLUDE_DIR} 132 ${ZLIB_INCLUDE_DIR} 133 ) 71 FIND_PACKAGE(OpenAL REQUIRED) 72 FIND_PACKAGE(ALUT REQUIRED) 73 FIND_PACKAGE(OggVorbis REQUIRED) 74 FIND_PACKAGE(ZLIB REQUIRED) 75 FIND_PACKAGE(Lua50 REQUIRED) 76 FIND_PACKAGE(TCL REQUIRED) 77 FIND_PACKAGE(DirectX REQUIRED) 134 78 135 79 # Add main source dir -
code/branches/buildsystem/cmake/CheckTardis.cmake
r1976 r1977 35 35 IF (IS_TARDIS) 36 36 MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.") 37 SET(CMAKE_C_COMPILER "gcc-4.1.1") 38 SET(CMAKE_CXX_COMPILER "g++-4.1.1") 39 SET(BOOST_ROOT "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1") 37 40 SET($ENV{LUA_DIR} "/usr/pack/lua-5.0.3-sd/i686-debian-linux3.1/lib") 38 41 ENDIF (IS_TARDIS) -
code/branches/buildsystem/src/CMakeLists.txt
r1975 r1977 1 INCLUDE_DIRECTORIES(.) 2 INCLUDE_DIRECTORIES(..) 3 INCLUDE_DIRECTORIES(ois) # for ois library subfolders 4 INCLUDE_DIRECTORIES(orxonox) 5 #INCLUDE_DIRECTORIES(lua) # for tolua library and generator 6 INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR}) 1 # Set the search paths for include files 2 INCLUDE_DIRECTORIES( 3 ${OGRE_INCLUDE_DIR} 4 ${CEGUI_INCLUDE_DIR} 5 # ${CEGUI_OGRE_INCLUDE_DIR} 6 ${ENet_INCLUDE_DIR} 7 ${Boost_INCLUDE_DIRS} 8 ${OPENAL_INCLUDE_DIR} 9 ${ALUT_INCLUDE_DIR} 10 ${VORBIS_INCLUDE_DIR} 11 ${OGG_INCLUDE_DIR} 12 ${LUA_INCLUDE_DIR} 13 ${TCL_INCLUDE_PATH} 14 ${DirectX_INCLUDE_DIR} 15 ${ZLIB_INCLUDE_DIR} 16 ) 17 18 # Set the search paths for the linking 19 LINK_DIRECTORIES( 20 ${OGRE_LIB_DIR} 21 ${CEGUI_LIB_DIR} 22 # ${CEGUI_SCRIPT_LIB_DIR} 23 # ${CEGUI_OGRE_LIB_DIR} 24 ${ENet_LIBRARY} 25 ${Boost_LIBRARY_DIRS} 26 ${Zlib_LIBRARY_DIR} 27 ${TCL_LIBRARY} 28 ) 29 30 INCLUDE_DIRECTORIES( 31 . 32 .. 33 ois 34 orxonox 35 ) 7 36 8 37 ADD_SUBDIRECTORY(cpptcl) … … 12 41 ADD_SUBDIRECTORY(tolua) 13 42 43 # TODO: write include file for this stuff 14 44 # Some people may not have CEGUILua installed, espc. with version 0.5 15 45 # And we don't know what lua version it was linked against, so we compile -
code/branches/buildsystem/src/core/CMakeLists.txt
r1975 r1977 59 59 TARGET_LINK_LIBRARIES(core 60 60 ${OGRE_LIBRARIES} 61 ${Boost_ thread_LIBRARIES}62 ${Boost_ filesystem_LIBRARIES}61 ${Boost_THREAD_LIBRARY} 62 ${Boost_FILESYSTEM_LIBRARY} 63 63 ${LUA_LIBRARIES} 64 64 cpptcl_orxonox -
code/branches/buildsystem/src/network/CMakeLists.txt
r1740 r1977 28 28 ${ZLIB_LIBRARY} 29 29 ${ENet_LIBRARY} 30 ${Boost_ thread_LIBRARIES}30 ${Boost_THREAD_LIBRARY} 31 31 core 32 32 ) -
code/branches/buildsystem/src/orxonox/CMakeLists.txt
r1975 r1977 98 98 ${CEGUI_LIBRARIES} 99 99 ${LUA_LIBRARIES} 100 # TODO: write include file for this 100 101 CEGUILuaScriptModule 101 102 tinyxml_orxonox
Note: See TracChangeset
for help on using the changeset viewer.