1 # - Locate CEGUI library
3 # CEGUI_LIBRARY, the library to link against
4 # CEGUI_FOUND, if false, do not try to link to CEGUI
5 # CEGUI_INCLUDE_DIRS, where to find headers.
7 IF(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
9 SET(CEGUI_FIND_QUIETLY TRUE)
13 FIND_PATH(CEGUI_INCLUDE_DIRS
16 $ENV{CEGUI_DIR}/include
23 PATH_SUFFIXES cegui CEGUI
26 FIND_LIBRARY(CEGUI_LIBRARY
41 GET_FILENAME_COMPONENT(CEGUI_LIB_DIR ${CEGUI_LIBRARY} PATH CACHE)
43 IF(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
44 SET(CEGUI_FOUND "YES")
45 SET(CEGUI_INCLUDE_DIRS "${CEGUI_INCLUDE_DIRS}/CEGUI")
46 IF(NOT CEGUI_FIND_QUIETLY)
47 MESSAGE(STATUS "Found CEGUI: ${CEGUI_LIBRARY}")
50 IF(NOT CEGUI_FIND_QUIETLY)
51 MESSAGE(STATUS "Warning: Unable to find CEGUI!")