Changeset 2197 for code/branches/buildsystem/CMakeLists.txt
- Timestamp:
- Nov 12, 2008, 4:08:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/CMakeLists.txt
r1999 r2197 3 3 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) 4 4 5 IF (COMMAND cmake_policy) 6 cmake_policy(SET CMP0003 NEW) 7 ENDIF (COMMAND cmake_policy) 8 9 # Allow for simple IF constructs (makes code a lot more readable) 10 #SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) 5 # TODO: Test CMake Modules without policy 6 #IF (COMMAND cmake_policy) 7 # cmake_policy(SET CMP0003 NEW) 8 #ENDIF (COMMAND cmake_policy) 11 9 12 10 # This sets where to look for modules (e.g. "Find*.cmake" files) 13 11 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 14 12 15 # Check whether we are on a tardis box and set customizedpaths13 # Check for special include paths 16 14 INCLUDE(CheckTardis) 15 INCLUDE(CheckOrxonoxWinDeps) 17 16 18 ############## Testing options##################17 ################ Test options ################### 19 18 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")19 OPTION(ENABLE_TESTS "Enable build tests.") 20 IF(ENABLE_TESTS) 21 ENABLE_TESTING() 22 ENDIF(ENABLE_TESTS) 23 24 OPTION(NETWORK_TESTING_ENABLED "Build network testing tools: i.e. chatclient chatserver and alike.") 25 OPTION(NETWORKTRAFFIC_TESTING_ENABLED "Build dummyserver4 and dummyclient4.") 27 26 28 27 ########## Compiler/Linker options ############## … … 31 30 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 32 31 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 32 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH) 33 33 34 # TODO: use CMake's options for build types 34 35 # Global compiler/linker flags. 35 36 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb") … … 45 46 ############### Library finding ################# 46 47 47 # Uncomment the following line if you want the include and library paths to be shown48 # Alternatively use the "-D VERBOSE_FIND:BOOL=true" option when executing cmake49 50 # SET (VERBOSE_FIND true)51 52 # Set the library directory when using precompiled tarballs for the dependencies under windows53 IF (WIN32)54 IF (MSVC)55 IF ($ENV{ORXONOX_DEV})56 SET (DEPENDENCY_DIR ${CMAKE_SOURCE_DIR}/../lib_dist/dependencies/)57 ELSE ($ENV{ORXONOX_DEV})58 SET (DEPENDENCY_DIR ${CMAKE_SOURCE_DIR}/dependencies/)59 ENDIF ($ENV{ORXONOX_DEV})60 SET(Boost_LIB_SUFFIX_DEBUG vc80-mt-gd-1_35)61 #MESSAGE(STATUS ${DEPENDENCY_DIR})62 ENDIF (MSVC)63 ENDIF (WIN32)64 65 48 # Performs the search and sets the variables 66 49 FIND_PACKAGE(OGRE REQUIRED) … … 74 57 FIND_PACKAGE(OggVorbis REQUIRED) 75 58 FIND_PACKAGE(ZLIB REQUIRED) 59 #TODO: don't require the whole tcl stuff 76 60 FIND_PACKAGE(TCL REQUIRED) 77 61 FIND_PACKAGE(DirectX REQUIRED)
Note: See TracChangeset
for help on using the changeset viewer.