2021-03-07 02:40:21 +02:00
|
|
|
# Try to find EPub library, once done this will define:
|
2020-03-25 01:41:20 +00:00
|
|
|
#
|
|
|
|
# EPUB_FOUND - system has EPub library
|
|
|
|
# EPUB_INCLUDE_DIR - the EPub library include directory
|
|
|
|
# EPUB_LIBRARIES - the libraries needed to use EPub library
|
|
|
|
#
|
2021-03-07 02:40:21 +02:00
|
|
|
# Copyright (c) 2020 Ivailo Monev <xakepa10@gmail.com>
|
2015-10-29 10:09:43 +02:00
|
|
|
#
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
|
2020-03-25 01:41:20 +00:00
|
|
|
find_path(EPUB_INCLUDE_DIR
|
2015-10-29 10:09:43 +02:00
|
|
|
NAMES epub.h
|
2020-03-25 01:41:20 +00:00
|
|
|
HINTS $ENV{EPUBDIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(EPUB_LIBRARIES
|
|
|
|
NAMES epub
|
|
|
|
HINTS $ENV{EPUBDIR}/lib
|
|
|
|
)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(EPub
|
|
|
|
REQUIRED_VARS EPUB_LIBRARIES EPUB_INCLUDE_DIR
|
|
|
|
)
|