Changeset 2574
- Timestamp:
- Jan 6, 2009, 9:37:52 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/CMakeLists.txt
r2566 r2574 2 2 3 3 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) 4 5 # Also forbid to use the root directory as binary directory 6 IF(${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 ..") 8 ENDIF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) 4 9 5 10 # This sets where to look for modules (e.g. "Find*.cmake" files) … … 54 59 FIND_PACKAGE(OGRE REQUIRED) 55 60 FIND_PACKAGE(CEGUI REQUIRED) 56 # CEGUI_OGRE is already included in source57 #FIND_PACKAGE(CEGUI_OGRE REQUIRED)58 61 FIND_PACKAGE(ENet REQUIRED) 59 62 FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem) -
code/branches/buildsystem2/cmake/FindCEGUI.cmake
r2573 r2574 63 63 DetermineVersion(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h _CEGUI_VERSION_temp) 64 64 SET(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. 66 66 # Howerver VERSION_LESS seems to be having serious issues. 67 IF(${CEGUI_VERSION} LESS "0.5.0")67 IF(${CEGUI_VERSION} STRLESS "0.5.0") 68 68 MESSAGE(FATAL_ERROR "Minimum CEGUI version required is 0.5.0") 69 ENDIF(${CEGUI_VERSION} LESS "0.5.0")69 ENDIF(${CEGUI_VERSION} STRLESS "0.5.0") 70 70 71 71 -
code/branches/buildsystem2/src/CMakeLists.txt
r2570 r2574 3 3 ${OGRE_INCLUDE_DIR} 4 4 ${CEGUI_INCLUDE_DIR} 5 # ${CEGUI_OGRE_INCLUDE_DIR}6 5 ${ENet_INCLUDE_DIR} 7 6 ${Boost_INCLUDE_DIRS} … … 16 15 ) 17 16 17 # Check whether the required CEGUILua version is even available 18 IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION}) 19 MESSAGE(FATAL_ERROR "Your CEGUI version is not supported (${CEGUI_VERSION})") 20 ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION}) 21 18 22 INCLUDE_DIRECTORIES( 23 ceguilua-${CEGUI_VERSION}/ceguilua 19 24 cpptcl 20 25 ois … … 34 39 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP") 35 40 41 ADD_SUBDIRECTORY(ceguilua-${CEGUI_VERSION}/ceguilua) 36 42 ADD_SUBDIRECTORY(cpptcl) 37 43 ADD_SUBDIRECTORY(ogreceguirenderer) … … 39 45 ADD_SUBDIRECTORY(tinyxml) 40 46 ADD_SUBDIRECTORY(tolua) 41 42 # TODO: FIXME43 # Some people may not have CEGUILua installed, espc. with version 0.544 # And we don't know what lua version it was linked against, so we compile45 # 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 # FIXME53 #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)61 47 62 48 # Include macros
Note: See TracChangeset
for help on using the changeset viewer.