Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1810 for code/trunk/cmake


Ignore:
Timestamp:
Sep 21, 2008, 8:44:25 PM (16 years ago)
Author:
rgrieder
Message:

merged ceguilua branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/cmake/FindCEGUI.cmake

    r1776 r1810  
    1919#                 > www.orxonox.net <
    2020
    21 IF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)
     21IF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES)
    2222    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)
     23ENDIF (CEGUI_LIBRARIES AND CEGUI_INCLUDE_DIR AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES)
    2424
    2525IF (WIN32) #Windows
     
    3939    ENDIF (CEGUI_LIBDIR)
    4040
    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)
     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)
    5757
    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)
     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)
    6363
    6464ELSE (WIN32) #Unix
     
    6868    SET(CEGUI_LIB_DIR ${CEGUI_LIBDIR})
    6969    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)
    7272ENDIF (WIN32)
    7373
    74 IF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR AND CEGUI_SCRIPT_LIBRARIES)
     74IF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES)
    7575    SET(CEGUI_FOUND TRUE)
    7676
     
    8282    SET(CEGUI_LIBRARIES ${CEGUI_LIBRARIES} CACHE STRING "")
    8383    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 "")
     85ENDIF (CEGUI_INCLUDE_DIR AND CEGUI_LIBRARIES AND CEGUI_LIB_DIR)# AND CEGUI_SCRIPT_LIBRARIES)
    8686
    8787IF (CEGUI_FOUND)
     
    9292            MESSAGE (STATUS "  library path: ${CEGUI_LIB_DIR}")
    9393            MESSAGE (STATUS "  libraries:    ${CEGUI_LIBRARIES}")
    94             MESSAGE (STATUS "           :    ${CEGUI_SCRIPT_LIBRARIES}")
     94#            MESSAGE (STATUS "           :    ${CEGUI_SCRIPT_LIBRARIES}")
    9595        ENDIF (VERBOSE_FIND)
    9696    ENDIF (NOT CEGUI_FIND_QUIETLY)
     
    105105        MESSAGE(SEND_ERROR "CEGUI libraries not known.")
    106106    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)
    110110ENDIF (CEGUI_FOUND)
    111111
Note: See TracChangeset for help on using the changeset viewer.