2 # Find the EPub library.
5 # EPUB_FOUND - whether the EPub library was found
6 # EPUB_LIBRARIES - the EPub library
7 # EPUB_INCLUDE_DIR - the include path of the EPub library
9 # Copyright (c) 2008, Pino Toscano, <pino@kde.org>
11 # Redistribution and use is allowed according to the terms of the BSD license.
12 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
15 if (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
20 else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
22 find_library (EPUB_LIBRARIES
26 find_path (EPUB_INCLUDE_DIR
30 include (FindPackageHandleStandardArgs)
31 find_package_handle_standard_args (EPub DEFAULT_MSG EPUB_LIBRARIES EPUB_INCLUDE_DIR)
33 endif (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
35 mark_as_advanced(EPUB_INCLUDE_DIR EPUB_LIBRARIES)