Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2574


Ignore:
Timestamp:
Jan 6, 2009, 9:37:52 PM (16 years ago)
Author:
rgrieder
Message:

Changed CEGUILua directory choosing and restricted root directory builds.

Location:
code/branches/buildsystem2
Files:
3 edited

Legend:

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

    r2566 r2574  
    22
    33CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
     4
     5# Also forbid to use the root directory as binary directory
     6IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
     7  MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! Mkdir a new subdir and invoke cmake ..")
     8ENDIF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
    49
    510# This sets where to look for modules (e.g. "Find*.cmake" files)
     
    5459FIND_PACKAGE(OGRE REQUIRED)
    5560FIND_PACKAGE(CEGUI REQUIRED)
    56 # CEGUI_OGRE is already included in source
    57 #FIND_PACKAGE(CEGUI_OGRE REQUIRED)
    5861FIND_PACKAGE(ENet REQUIRED)
    5962FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)
  • code/branches/buildsystem2/cmake/FindCEGUI.cmake

    r2573 r2574  
    6363DetermineVersion(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h _CEGUI_VERSION_temp)
    6464SET(CEGUI_VERSION "${_CEGUI_VERSION_temp}" CACHE STRING "")
    65 # LESS can be dangerous since it only compares strings.
     65# STRLESS can be dangerous since it only compares strings.
    6666# Howerver VERSION_LESS seems to be having serious issues.
    67 IF(${CEGUI_VERSION} LESS "0.5.0")
     67IF(${CEGUI_VERSION} STRLESS "0.5.0")
    6868  MESSAGE(FATAL_ERROR "Minimum CEGUI version required is 0.5.0")
    69 ENDIF(${CEGUI_VERSION} LESS "0.5.0")
     69ENDIF(${CEGUI_VERSION} STRLESS "0.5.0")
    7070
    7171
  • code/branches/buildsystem2/src/CMakeLists.txt

    r2570 r2574  
    33  ${OGRE_INCLUDE_DIR}
    44  ${CEGUI_INCLUDE_DIR}
    5 #  ${CEGUI_OGRE_INCLUDE_DIR}
    65  ${ENet_INCLUDE_DIR}
    76  ${Boost_INCLUDE_DIRS}
     
    1615)
    1716
     17# Check whether the required CEGUILua version is even available
     18IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
     19  MESSAGE(FATAL_ERROR "Your CEGUI version is not supported (${CEGUI_VERSION})")
     20ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
     21
    1822INCLUDE_DIRECTORIES(
     23  ceguilua-${CEGUI_VERSION}/ceguilua
    1924  cpptcl
    2025  ois
     
    3439SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP")
    3540
     41ADD_SUBDIRECTORY(ceguilua-${CEGUI_VERSION}/ceguilua)
    3642ADD_SUBDIRECTORY(cpptcl)
    3743ADD_SUBDIRECTORY(ogreceguirenderer)
     
    3945ADD_SUBDIRECTORY(tinyxml)
    4046ADD_SUBDIRECTORY(tolua)
    41 
    42 # TODO: FIXME
    43 # Some people may not have CEGUILua installed, espc. with version 0.5
    44 # And we don't know what lua version it was linked against, so we compile
    45 # it ourselves.
    46 # So first, find out what CEGUI version we have.
    47 
    48 IF (WIN32)
    49     ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
    50     INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
    51 ELSE (WIN32)
    52     # FIXME
    53     #IF (${CEGUI_VERSION} LESS 0.6.0)
    54         ADD_SUBDIRECTORY(ceguilua-0.5.0/ceguilua)
    55         INCLUDE_DIRECTORIES(ceguilua-0.5.0/ceguilua)
    56     #ELSE (${CEGUI_VERSION} LESS 0.6.0)
    57     #    ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
    58     #    INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
    59     #ENDIF (${CEGUI_VERSION} LESS 0.6.0)
    60 ENDIF (WIN32)
    6147
    6248# Include macros
Note: See TracChangeset for help on using the changeset viewer.