Warning, /frameworks/kfilemetadata/cmake/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 if (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0013 
0014   # Already in cache
0015   set (EPUB_FOUND TRUE)
0016 
0017 else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0018 
0019   find_library (EPUB_LIBRARIES
0020     NAMES epub libepub
0021   )
0022 
0023   find_path (EPUB_INCLUDE_DIR
0024     NAMES epub.h
0025   )
0026 
0027   include (FindPackageHandleStandardArgs)
0028   find_package_handle_standard_args (EPub DEFAULT_MSG EPUB_LIBRARIES EPUB_INCLUDE_DIR)
0029 
0030 endif (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
0031 
0032 mark_as_advanced(EPUB_INCLUDE_DIR EPUB_LIBRARIES)