Warning, /graphics/okular/cmake/modules/FindDjVuLibre.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the DjVuLibre library
0002 # Once done this will define
0003 #
0004 #  DJVULIBRE_FOUND - system has the DjVuLibre library
0005 #  DJVULIBRE_INCLUDE_DIR - the DjVuLibre include directory
0006 #  DJVULIBRE_LIBRARY - Link this to use the DjVuLibre library
0007 
0008 if (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
0009 
0010   # in cache already
0011   set(DJVULIBRE_FOUND TRUE)
0012 
0013 else (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
0014   IF (NOT WIN32)
0015         find_package(PkgConfig)
0016 
0017         pkg_check_modules(PC_DJVULIBRE ddjvuapi)
0018   endif(NOT WIN32)
0019 
0020     find_path(DJVULIBRE_INCLUDE_DIR libdjvu/ddjvuapi.h
0021       PATHS
0022       ${PC_DJVULIBRE_INCLUDEDIR}
0023       ${PC_DJVULIBRE_INCLUDE_DIRS}
0024       ${GNUWIN32_DIR}/include
0025     )
0026 
0027     find_library(DJVULIBRE_LIBRARY NAMES djvulibre
0028       PATHS
0029       ${PC_DJVULIBRE_LIBDIR}
0030       ${PC_DJVULIBRE_LIBRARY_DIRS}
0031       ${GNUWIN32_DIR}/lib
0032     )
0033 
0034   include(FindPackageHandleStandardArgs)
0035   FIND_PACKAGE_HANDLE_STANDARD_ARGS(DjVuLibre DEFAULT_MSG DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY )
0036   
0037   mark_as_advanced(DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY)
0038 
0039 endif (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)