Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2008, 4:08:35 PM (15 years ago)
Author:
adrfried
Message:

FindCEGUI.cmake and others cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/CMakeLists.txt

    r1999 r2197  
    33CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
    44
    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)
    119
    1210# This sets where to look for modules (e.g. "Find*.cmake" files)
    1311SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
    1412
    15 # Check whether we are on a tardis box and set customized paths
     13# Check for special include paths
    1614INCLUDE(CheckTardis)
     15INCLUDE(CheckOrxonoxWinDeps)
    1716
    18 ############## Testing options ##################
     17################ Test options ###################
    1918
    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")
     19OPTION(ENABLE_TESTS "Enable build tests.")
     20IF(ENABLE_TESTS)
     21  ENABLE_TESTING()
     22ENDIF(ENABLE_TESTS)
     23
     24OPTION(NETWORK_TESTING_ENABLED "Build network testing tools: i.e. chatclient chatserver and alike.")
     25OPTION(NETWORKTRAFFIC_TESTING_ENABLED "Build dummyserver4 and dummyclient4.")
    2726
    2827########## Compiler/Linker options ##############
     
    3130SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    3231SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/bin)
     32MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
    3333
     34# TODO: use CMake's options for build types
    3435# Global compiler/linker flags.
    3536SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter -g -ggdb")
     
    4546############### Library finding #################
    4647
    47 # Uncomment the following line if you want the include and library paths to be shown
    48 # Alternatively use the "-D VERBOSE_FIND:BOOL=true" option when executing cmake
    49 
    50 # SET (VERBOSE_FIND true)
    51 
    52 # Set the library directory when using precompiled tarballs for the dependencies under windows
    53 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 
    6548# Performs the search and sets the variables
    6649FIND_PACKAGE(OGRE REQUIRED)
     
    7457FIND_PACKAGE(OggVorbis REQUIRED)
    7558FIND_PACKAGE(ZLIB REQUIRED)
     59#TODO: don't require the whole tcl stuff
    7660FIND_PACKAGE(TCL REQUIRED)
    7761FIND_PACKAGE(DirectX REQUIRED)
Note: See TracChangeset for help on using the changeset viewer.