mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00
25 lines
701 B
CMake
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
|
|
)
|