Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 13, 2008, 9:32:44 PM (16 years ago)
Author:
landauf
Message:

Many changes in almost all FindXYZ.cmake files. They now throw errors if something wasn't found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/CMakeLists.txt

    r1755 r1776  
    33cmake_minimum_required(VERSION 2.4)
    44
    5 if(COMMAND cmake_policy)
     5IF (COMMAND cmake_policy)
    66  cmake_policy(SET CMP0003 NEW)
    7 endif(COMMAND cmake_policy)
     7ENDIF (COMMAND cmake_policy)
    88
    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)
    1010SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
    1111
    12 #Check whether we are on a tardis box
     12# Check whether we are on a tardis box
    1313INCLUDE(CheckTardis)
    1414
     
    2121ENDIF(TESTING_ENABLED)
    2222
    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")
     23OPTION (NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike")
     24OPTION (NETWORKTRAFFIC_TESTING_ENABLED "Do you want to build dummyserver4 and dummyclient4")
    2525
    2626
     
    3030IF(IS_TARDIS)
    3131  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.3
     32  # Force-set the compiler on tardis machines, as default points to g++-3.3
    3333  SET(CMAKE_CXX_COMPILER "g++-4.1.1")
    34   # reset Boost serach path
     34  # Reset Boost serach path
    3535  SET(Boost_INCLUDE_DIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/include")
    3636ELSE (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)
    3840ENDIF(IS_TARDIS)
    3941
    40 #set binary output directories
     42# Set binary output directories
    4143SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
    4244SET(LIBRARY_OUTPUT_PATH    ${PROJECT_SOURCE_DIR}/bin/lib)
    4345
    44 # global compiler/linker flags. force -O2!
     46# Global compiler/linker flags. force -O2!
    4547SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O0 -Wall -g -ggdb")
    4648SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
     
    5355SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined")
    5456
    55 #use 'cmake -D make_verb:1 path' to get verbose make output when compiling
     57# Use 'cmake -D make_verb:1 path' to get verbose make output when compiling
    5658IF (MAKE_VERB)
    5759 SET(CMAKE_VERBOSE_MAKEFILE TRUE)
     
    6163############### Library finding #################
    6264
    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
    6471FIND_PACKAGE(OGRE)
    6572FIND_PACKAGE(CEGUI)
     
    7582FIND_PACKAGE(DirectX)
    7683
    77 #Set the search paths for the linking
     84# Set the search paths for the linking
    7885LINK_DIRECTORIES(
    7986  ${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}
    8190  ${ENet_LIBRARY}
    8291  ${Boost_LIBRARY_DIRS}
     
    8594)
    8695
    87 #Set the search paths for include files
     96# Set the search paths for include files
    8897INCLUDE_DIRECTORIES(
    8998  ${OGRE_INCLUDE_DIR}
    90   ${CEGUI_INCLUDE_DIR} # ${CEGUI_OGRE_INCLUDE_DIR}
     99  ${CEGUI_INCLUDE_DIR}
     100#  ${CEGUI_OGRE_INCLUDE_DIR}
    91101  ${ENet_INCLUDE_DIR}
    92102  ${Boost_INCLUDE_DIRS}
     
    101111)
    102112
    103 #add main source dir
     113# Add main source dir
    104114ADD_SUBDIRECTORY(src)
    105115
Note: See TracChangeset for help on using the changeset viewer.