Warning, /graphics/okular/cmake/modules/FindEPub.cmake is written in an unsupported language. File is not indexed.

0001 # - Find EPub
0002 # Find the EPub library.
0003 #
0004 # This module defines
0005 #  EPUB_FOUND - whether the EPub library was found
0006 #  EPUB_LIBRARIES - the EPub library
0007 #  EPUB_INCLUDE_DIR - the include path of the EPub library
0008 
0009 # SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
0010 # SPDX-License-Identifier: BSD-3-Clause
0011 
0012 
0013 if (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0014 
0015   # Already in cache
0016   set (EPUB_FOUND TRUE)
0017 
0018 else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0019 
0020   find_library (EPUB_LIBRARIES
0021     NAMES epub libepub
0022   )
0023 
0024   find_path (EPUB_INCLUDE_DIR
0025     NAMES epub.h
0026   )
0027 
0028   include (FindPackageHandleStandardArgs)
0029   find_package_handle_standard_args (EPub DEFAULT_MSG EPUB_LIBRARIES EPUB_INCLUDE_DIR)
0030 
0031 endif (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0032 
0033 mark_as_advanced(EPUB_INCLUDE_DIR EPUB_LIBRARIES)