Changeset 1810 for code/trunk/cmake
- Timestamp:
- Sep 21, 2008, 8:44:25 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/ceguilua (added) merged: 1803-1808
- Property svn:mergeinfo changed
-
code/trunk/cmake/FindCEGUI.cmake
r1776 r1810 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) … … 92 92 MESSAGE (STATUS " library path: ${CEGUI_LIB_DIR}") 93 93 MESSAGE (STATUS " libraries: ${CEGUI_LIBRARIES}") 94 MESSAGE (STATUS " : ${CEGUI_SCRIPT_LIBRARIES}")94 # MESSAGE (STATUS " : ${CEGUI_SCRIPT_LIBRARIES}") 95 95 ENDIF (VERBOSE_FIND) 96 96 ENDIF (NOT CEGUI_FIND_QUIETLY) … … 105 105 MESSAGE(SEND_ERROR "CEGUI libraries not known.") 106 106 ENDIF (NOT CEGUI_LIBRARIES) 107 IF (NOT CEGUI_SCRIPT_LIBRARIES)108 MESSAGE(SEND_ERROR "CEGUI Lua script module was not found.")109 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) 110 110 ENDIF (CEGUI_FOUND) 111 111
Note: See TracChangeset
for help on using the changeset viewer.