2 # Find the Okular core library
5 # OKULAR_FOUND - whether the Okular core library was found
6 # OKULAR_LIBRARIES - the Okular core library
7 # OKULAR_INCLUDE_DIR - the include path of the Okular core library
10 if (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
13 set (OKULAR_FOUND TRUE)
15 else (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
17 find_library (OKULAR_LIBRARIES
25 find_path (OKULAR_INCLUDE_DIR
27 okular/core/document.h
29 ${INCLUDE_INSTALL_DIR}
33 include(FindPackageHandleStandardArgs)
34 find_package_handle_standard_args(Okular DEFAULT_MSG OKULAR_LIBRARIES OKULAR_INCLUDE_DIR)
36 endif (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
38 mark_as_advanced(OKULAR_INCLUDE_DIR OKULAR_LIBRARIES)