not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / kephal / libkephal / FindKephal.cmake
blobfdc130f0be16069936eb838222dbbd89bc4e4752
1 IF (KEPHAL_INCLUDE_DIR AND KEPHAL_LIBRARY)
2    SET(Kephal_FIND_QUIETLY TRUE)
3 ENDIF (KEPHAL_INCLUDE_DIR AND KEPHAL_LIBRARY)
5 FIND_PATH(KEPHAL_INCLUDE_DIR NAMES kephal/screens.h PATHS
6         ${KDE4_INCLUDE_DIR}
7         ${INCLUDE_INSTALL_DIR})
9 FIND_LIBRARY(KEPHAL_LIBRARY NAMES kephal PATHS
10         ${KDE4_LIB_DIR}
11         ${LIB_INSTALL_DIR})
13 IF (KEPHAL_INCLUDE_DIR AND KEPHAL_LIBRARY)
14    SET(KEPHAL_FOUND TRUE)
15 ENDIF (KEPHAL_INCLUDE_DIR AND KEPHAL_LIBRARY)
18 IF (KEPHAL_FOUND)
19    IF (NOT Kephal_FIND_QUIETLY)
20       MESSAGE(STATUS "Found Kephal: ${KEPHAL_LIBRARY}")
21    ENDIF (NOT Kephal_FIND_QUIETLY)
22 ELSE (KEPHAL_FOUND)
23    IF (Kephal_FIND_REQUIRED)
24       MESSAGE(FATAL_ERROR "Could not find Kephal")
25    ENDIF (Kephal_FIND_REQUIRED)
26 ENDIF (KEPHAL_FOUND)