kdelibs/cmake/modules/FindEPub.cmake
Ivailo Monev 8c6c2f1384 cmake: modules review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-07 02:40:21 +02:00

25 lines
701 B
CMake

# Try to find EPub library, once done this will define:
#
# EPUB_FOUND - system has EPub library
# EPUB_INCLUDE_DIR - the EPub library include directory
# EPUB_LIBRARIES - the libraries needed to use EPub library
#
# Copyright (c) 2020 Ivailo Monev <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
find_path(EPUB_INCLUDE_DIR
NAMES epub.h
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
)