Changeset 1776 for code/trunk/CMakeLists.txt
- Timestamp:
- Sep 13, 2008, 9:32:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/CMakeLists.txt
r1755 r1776 3 3 cmake_minimum_required(VERSION 2.4) 4 4 5 if(COMMAND cmake_policy)5 IF (COMMAND cmake_policy) 6 6 cmake_policy(SET CMP0003 NEW) 7 endif(COMMAND cmake_policy)7 ENDIF (COMMAND cmake_policy) 8 8 9 # This sets where to look for modules (e.g. "Find*.cmake" files)9 # This sets where to look for modules (e.g. "Find*.cmake" files) 10 10 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 11 11 12 # Check whether we are on a tardis box12 # Check whether we are on a tardis box 13 13 INCLUDE(CheckTardis) 14 14 … … 21 21 ENDIF(TESTING_ENABLED) 22 22 23 OPTION (NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike")24 OPTION (NETWORKTRAFFIC_TESTING_ENABLED "Do you want to build dummyserver4 and dummyclient4")23 OPTION (NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike") 24 OPTION (NETWORKTRAFFIC_TESTING_ENABLED "Do you want to build dummyserver4 and dummyclient4") 25 25 26 26 … … 30 30 IF(IS_TARDIS) 31 31 MESSAGE("System is a TARDIS: Setting Compiler to g++-4.1.1") 32 # force-set the compiler on tardis machines, as default points to g++-3.332 # Force-set the compiler on tardis machines, as default points to g++-3.3 33 33 SET(CMAKE_CXX_COMPILER "g++-4.1.1") 34 # reset Boost serach path34 # Reset Boost serach path 35 35 SET(Boost_INCLUDE_DIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/include") 36 36 ELSE (IS_TARDIS) 37 SET(Boost_INCLUDE_DIR "/usr/include/boost") 37 IF (NOT WIN32) 38 SET(Boost_INCLUDE_DIR "/usr/include/boost") 39 ENDIF (NOT WIN32) 38 40 ENDIF(IS_TARDIS) 39 41 40 # set binary output directories42 # Set binary output directories 41 43 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) 42 44 SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/lib) 43 45 44 # global compiler/linker flags. force -O2!46 # Global compiler/linker flags. force -O2! 45 47 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O0 -Wall -g -ggdb") 46 48 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb") … … 53 55 SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined") 54 56 55 # use 'cmake -D make_verb:1 path' to get verbose make output when compiling57 # Use 'cmake -D make_verb:1 path' to get verbose make output when compiling 56 58 IF (MAKE_VERB) 57 59 SET(CMAKE_VERBOSE_MAKEFILE TRUE) … … 61 63 ############### Library finding ################# 62 64 63 #Performs the search and sets the variables 65 # Uncomment the following line if you want the include and library paths to be shown 66 # Alternatively use the "-D VERBOSE_FIND:BOOL=true" option when executing cmake 67 68 # SET (VERBOSE_FIND true) 69 70 # Performs the search and sets the variables 64 71 FIND_PACKAGE(OGRE) 65 72 FIND_PACKAGE(CEGUI) … … 75 82 FIND_PACKAGE(DirectX) 76 83 77 # Set the search paths for the linking84 # Set the search paths for the linking 78 85 LINK_DIRECTORIES( 79 86 ${OGRE_LIB_DIR} 80 ${CEGUI_LIB_DIR} # ${CEGUI_OGRE_LIB_DIR} 87 ${CEGUI_LIB_DIR} 88 ${CEGUI_SCRIPT_LIB_DIR} 89 # ${CEGUI_OGRE_LIB_DIR} 81 90 ${ENet_LIBRARY} 82 91 ${Boost_LIBRARY_DIRS} … … 85 94 ) 86 95 87 # Set the search paths for include files96 # Set the search paths for include files 88 97 INCLUDE_DIRECTORIES( 89 98 ${OGRE_INCLUDE_DIR} 90 ${CEGUI_INCLUDE_DIR} # ${CEGUI_OGRE_INCLUDE_DIR} 99 ${CEGUI_INCLUDE_DIR} 100 # ${CEGUI_OGRE_INCLUDE_DIR} 91 101 ${ENet_INCLUDE_DIR} 92 102 ${Boost_INCLUDE_DIRS} … … 101 111 ) 102 112 103 # add main source dir113 # Add main source dir 104 114 ADD_SUBDIRECTORY(src) 105 115
Note: See TracChangeset
for help on using the changeset viewer.