use const d
[kdegraphics.git] / cmake / modules / FindEPub.cmake
blob929ad65f05188dc1587c64b081c3e1043ecabb25
1 # - Find EPub
2 # Find the EPub library.
4 # This module defines
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)
17   # Already in cache
18   set (EPUB_FOUND TRUE)
20 else (EPUB_INCLUDE_DIR AND EPUB_LIBRARIES)
22   find_library (EPUB_LIBRARIES
23     NAMES epub libepub
24   )
26   find_path (EPUB_INCLUDE_DIR
27     NAMES epub.h
28   )
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)