2008-02-13 19:14:20 +00:00
|
|
|
# - Find EPub
|
|
|
|
# Find the EPub library.
|
|
|
|
#
|
|
|
|
# This module defines
|
|
|
|
# EPUB_FOUND - whether the EPub library was found
|
|
|
|
# EPUB_LIBRARIES - the EPub library
|
|
|
|
# EPUB_INCLUDE_DIR - the include path of the EPub library
|
|
|
|
|
2021-05-24 07:25:56 +00:00
|
|
|
# SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
|
2021-05-24 11:44:36 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2008-02-13 19:14:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
|
|
|
|
|
|
|
|
# Already in cache
|
|
|
|
set (EPUB_FOUND TRUE)
|
|
|
|
|
|
|
|
else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
|
|
|
|
|
|
|
|
find_library (EPUB_LIBRARIES
|
2008-08-28 00:05:31 +00:00
|
|
|
NAMES epub libepub
|
2008-02-13 19:14:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
find_path (EPUB_INCLUDE_DIR
|
|
|
|
NAMES epub.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include (FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args (EPub DEFAULT_MSG EPUB_LIBRARIES EPUB_INCLUDE_DIR)
|
|
|
|
|
|
|
|
endif (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(EPUB_INCLUDE_DIR EPUB_LIBRARIES)
|