mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
![Pino Toscano](/assets/img/avatar_default.png)
- lowercase the function calls - use FindPackageHandleStandardArgs - a bit of doc svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=773724
39 lines
878 B
CMake
39 lines
878 B
CMake
# - Find Okular
|
|
# Find the Okular core library
|
|
#
|
|
# This module defines
|
|
# OKULAR_FOUND - whether the Okular core library was found
|
|
# OKULAR_LIBRARIES - the Okular core library
|
|
# OKULAR_INCLUDE_DIR - the include path of the Okular core library
|
|
#
|
|
|
|
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
|
|
NAMES
|
|
okularcore
|
|
PATHS
|
|
${LIB_INSTALL_DIR}
|
|
${KDE4_LIB_DIR}
|
|
)
|
|
|
|
find_path (OKULAR_INCLUDE_DIR
|
|
NAMES
|
|
okular/core/document.h
|
|
PATHS
|
|
${INCLUDE_INSTALL_DIR}
|
|
${KDE4_INCLUDE_DIR}
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Okular DEFAULT_MSG OKULAR_LIBRARIES OKULAR_INCLUDE_DIR)
|
|
|
|
endif (OKULAR_INCLUDE_DIR AND OKULAR_LIBRARIES)
|
|
|
|
mark_as_advanced(OKULAR_INCLUDE_DIR OKULAR_LIBRARIES)
|