Changeset 1809 for code/branches
- Timestamp:
- Sep 21, 2008, 8:39:08 PM (16 years ago)
- Location:
- code/branches/ceguilua
- Files:
-
- 4 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ceguilua/cmake/FindCEGUI.cmake
r1805 r1809 19 19 # > www.orxonox.net < 20 20 21 IF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)21 IF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES) 22 22 SET(CEGUI_FIND_QUIETLY TRUE) # Already in cache, be silent 23 ENDIF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)23 ENDIF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES) 24 24 25 25 IF (WIN32) #Windows … … 39 39 ENDIF (CEGUI_LIBDIR) 40 40 41 IF (NOT CEGUI_SCRIPT_LIBDIR)42 # Search Lua script module43 SET(CEGUI_SCRIPT_LIBRARIES "CEGUILuaScriptModule")44 FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS45 ../libs/cegui-0.6.1/bin46 )47 48 SET(CEGUI_SCRIPT_LIBRARIES "CEGUILua")49 FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS50 ../libs/cegui-0.6.1/bin51 )52 IF (NOT CEGUI_SCRIPT_LIBDIR)53 SET(CEGUI_SCRIPT_LIBRARIES)54 ENDIF (NOT CEGUI_SCRIPT_LIBDIR)55 ENDIF (NOT CEGUI_SCRIPT_LIBDIR)56 ENDIF (NOT CEGUI_SCRIPT_LIBDIR)41 # IF (NOT CEGUI_SCRIPT_LIBDIR) 42 # # Search Lua script module 43 # SET(CEGUI_SCRIPT_LIBRARIES "CEGUILuaScriptModule") 44 # FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS 45 # ../libs/cegui-0.6.1/bin 46 # ) 47 # IF (NOT CEGUI_SCRIPT_LIBDIR) 48 # SET(CEGUI_SCRIPT_LIBRARIES "CEGUILua") 49 # FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS 50 # ../libs/cegui-0.6.1/bin 51 # ) 52 # IF (NOT CEGUI_SCRIPT_LIBDIR) 53 # SET(CEGUI_SCRIPT_LIBRARIES) 54 # ENDIF (NOT CEGUI_SCRIPT_LIBDIR) 55 # ENDIF (NOT CEGUI_SCRIPT_LIBDIR) 56 # ENDIF (NOT CEGUI_SCRIPT_LIBDIR) 57 57 58 # Strip the filename from the path59 IF (CEGUI_SCRIPT_LIBDIR)60 GET_FILENAME_COMPONENT(CEGUI_SCRIPT_LIBDIR ${CEGUI_SCRIPT_LIBDIR} PATH)61 SET (CEGUI_SCRIPT_LIB_DIR ${CEGUI_SCRIPT_LIBDIR} CACHE FILEPATH "")62 ENDIF (CEGUI_SCRIPT_LIBDIR)58 # # Strip the filename from the path 59 # IF (CEGUI_SCRIPT_LIBDIR) 60 # GET_FILENAME_COMPONENT(CEGUI_SCRIPT_LIBDIR ${CEGUI_SCRIPT_LIBDIR} PATH) 61 # SET (CEGUI_SCRIPT_LIB_DIR ${CEGUI_SCRIPT_LIBDIR} CACHE FILEPATH "") 62 # ENDIF (CEGUI_SCRIPT_LIBDIR) 63 63 64 64 ELSE (WIN32) #Unix … … 68 68 SET(CEGUI_LIB_DIR ${CEGUI_LIBDIR}) 69 69 SET(CEGUI_LIBRARIES ${CEGUI_LIBRARIES} CACHE STRING "") 70 SET(CEGUI_SCRIPT_LIBRARIES "CEGUILuaScriptModule")71 SET(CEGUI_SCRIPT_LIB_DIR)70 # SET(CEGUI_SCRIPT_LIBRARIES "CEGUILuaScriptModule") 71 # SET(CEGUI_SCRIPT_LIB_DIR) 72 72 ENDIF (WIN32) 73 73 74 IF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)74 IF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES) 75 75 SET(CEGUI_FOUND TRUE) 76 76 … … 82 82 SET(CEGUI_LIBRARIES ${CEGUI_LIBRARIES} CACHE STRING "") 83 83 SET(CEGUI_LIB_DIR ${CEGUI_LIB_DIR} CACHE PATH "") 84 SET(CEGUI_SCRIPT_LIBRARIES ${CEGUI_SCRIPT_LIBRARIES} CACHE PATH "")85 ENDIF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)84 # SET(CEGUI_SCRIPT_LIBRARIES ${CEGUI_SCRIPT_LIBRARIES} CACHE PATH "") 85 ENDIF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES) 86 86 87 87 IF (CEGUI_FOUND) 88 # check CEGUIVersion.h to set the version macro89 FILE(READ "${CEGUI_INCLUDE_DIR}/CEGUIVersion.h" ceguiVersionFile)90 STRING(REGEX MATCH "\\#define CEGUI_VERSION_MINOR ([56])" "\\1" CEGUI_VERSION ${ceguiVersionFile})91 MESSAGE(STATUS "${CEGUI_VERSION}")92 88 IF (NOT CEGUI_FIND_QUIETLY) 93 89 MESSAGE(STATUS "CEGUI was found.") … … 96 92 MESSAGE (STATUS " library path: ${CEGUI_LIB_DIR}") 97 93 MESSAGE (STATUS " libraries: ${CEGUI_LIBRARIES}") 98 MESSAGE (STATUS " : ${CEGUI_SCRIPT_LIBRARIES}")94 # MESSAGE (STATUS " : ${CEGUI_SCRIPT_LIBRARIES}") 99 95 ENDIF (VERBOSE_FIND) 100 96 ENDIF (NOT CEGUI_FIND_QUIETLY) … … 109 105 MESSAGE(SEND_ERROR "CEGUI libraries not known.") 110 106 ENDIF (NOT CEGUI_LIBRARIES) 111 IF (NOT CEGUI_SCRIPT_LIBRARIES)112 MESSAGE(SEND_ERROR "CEGUI Lua script module was not found.")113 ENDIF (NOT CEGUI_SCRIPT_LIBRARIES)107 # IF (NOT CEGUI_SCRIPT_LIBRARIES) 108 # MESSAGE(SEND_ERROR "CEGUI Lua script module was not found.") 109 # ENDIF (NOT CEGUI_SCRIPT_LIBRARIES) 114 110 ENDIF (CEGUI_FOUND) 115 111 -
code/branches/ceguilua/src/tolua/CMakeLists.txt
r1804 r1809 28 28 29 29 30 IF (Lua_VERSION EQUAL 5.0) 31 SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg") 32 ELSE (Lua_VERSION EQUAL 5.0) 33 SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") 34 ENDIF (Lua_VERSION EQUAL 5.0) 35 30 SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") 36 31 GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION) 37 32 ADD_CUSTOM_COMMAND(
Note: See TracChangeset
for help on using the changeset viewer.