Warning, /frameworks/kdelibs4support/cmake/modules/FindPopplerQt4.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the Qt4 binding of the Poppler library
0002 # Once done this will define
0003 #
0004 #  POPPLER_QT4_FOUND - system has poppler-qt4
0005 #  POPPLER_QT4_INCLUDE_DIR - the poppler-qt4 include directory
0006 #  POPPLER_QT4_LIBRARIES - Link these to use poppler-qt4
0007 #  POPPLER_QT4_DEFINITIONS - Compiler switches required for using poppler-qt4
0008 #
0009 
0010 # use pkg-config to get the directories and then use these values
0011 # in the FIND_PATH() and FIND_LIBRARY() calls
0012 
0013 # Copyright (c) 2006, Wilfried Huss, <wilfried.huss@gmx.at>
0014 #
0015 # Redistribution and use is allowed according to the terms of the BSD license.
0016 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0017 
0018 
0019 find_package(PkgConfig)
0020 pkg_check_modules(PC_POPPLERQT4 QUIET poppler-qt4)
0021 
0022 set(POPPLER_QT4_DEFINITIONS ${PC_POPPLERQT4_CFLAGS_OTHER})
0023 
0024 find_path(POPPLER_QT4_INCLUDE_DIR
0025   NAMES poppler-qt4.h
0026   HINTS ${PC_POPPLERQT4_INCLUDEDIR}
0027   PATH_SUFFIXES poppler/qt4 poppler
0028 )
0029 
0030 find_library(POPPLER_QT4_LIBRARY
0031   NAMES poppler-qt4
0032   HINTS ${PC_POPPLERQT4_LIBDIR}
0033 )
0034 
0035 set(POPPLER_QT4_LIBRARIES ${POPPLER_QT4_LIBRARY})
0036 
0037 include(FindPackageHandleStandardArgs)
0038 find_package_handle_standard_args(PopplerQt4 REQUIRED_VARS POPPLER_QT4_INCLUDE_DIR POPPLER_QT4_LIBRARIES)
0039 
0040 # for compatibility:
0041 set(POPPLER_QT4_FOUND ${POPPLERQT4_FOUND})
0042   
0043 mark_as_advanced(POPPLER_QT4_INCLUDE_DIR POPPLER_QT4_LIBRARIES)