2007-05-13 07:10:15 +00:00
|
|
|
# - Find Okular
|
|
|
|
# Find the Okular Generators includes and library
|
|
|
|
#
|
|
|
|
# This module defines
|
|
|
|
# OKULAR_FOUND
|
|
|
|
# OKULAR_LIBRARIES
|
|
|
|
# OKULAR_INCLUDE_DIR
|
|
|
|
#
|
|
|
|
|
|
|
|
IF (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
|
|
|
|
|
|
|
|
# Already in cache
|
|
|
|
SET(OKULAR_FOUND TRUE)
|
|
|
|
|
|
|
|
ELSE (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
|
|
|
|
|
|
|
|
FIND_LIBRARY (OKULAR_LIBRARIES okularcore
|
|
|
|
PATHS
|
|
|
|
${KDE4_LIB_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_PATH (OKULAR_INCLUDE_DIR okular/core/document.h
|
|
|
|
${KDE4_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#
|
|
|
|
# everything necessary found?
|
|
|
|
#
|
|
|
|
IF (OKULAR_LIBRARIES AND OKULAR_INCLUDE_DIR)
|
|
|
|
SET (OKULAR_FOUND TRUE)
|
|
|
|
ELSE (OKULAR_LIBRARIES AND OKULAR_INCLUDE_DIR)
|
|
|
|
SET (OKULAR_FOUND FALSE)
|
|
|
|
ENDIF (OKULAR_LIBRARIES AND OKULAR_INCLUDE_DIR)
|
|
|
|
|
|
|
|
MARK_AS_ADVANCED(OKULAR_INCLUDE_DIR OKULAR_LIBRARIES)
|
|
|
|
|
|
|
|
ENDIF (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# output status
|
|
|
|
#
|
|
|
|
IF (OKULAR_FOUND)
|
2007-05-13 07:42:39 +00:00
|
|
|
if (NOT Okular_FIND_QUIETLY)
|
2007-05-13 07:10:15 +00:00
|
|
|
MESSAGE (STATUS "Found Okular Generator: ${OKULAR_INCLUDE_DIR} ${OKULAR_LIBRARIES}")
|
2007-05-13 07:42:39 +00:00
|
|
|
endif(NOT Okular_FIND_QUIETLY)
|
2007-05-13 07:10:15 +00:00
|
|
|
ELSE (OKULAR_FOUND)
|
2007-05-13 07:42:39 +00:00
|
|
|
if (Okular_FIND_REQUIRED)
|
2007-06-19 19:58:45 +00:00
|
|
|
MESSAGE (FATAL_ERROR "Okular Generator not found." )
|
2007-05-13 07:42:39 +00:00
|
|
|
endif (Okular_FIND_REQUIRED)
|
2007-05-13 07:10:15 +00:00
|
|
|
ENDIF (OKULAR_FOUND)
|
2007-05-13 07:42:39 +00:00
|
|
|
|