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

0001 # - Try to find the qimageblitz lib
0002 # Once done this will define
0003 #
0004 #  QIMAGEBLITZ_FOUND - system has qimageblitz lib
0005 #  QIMAGEBLITZ_INCLUDES - the qimageblitz include directory
0006 #  QIMAGEBLITZ_LIBRARIES - The libraries needed to use qimageblitz
0007 
0008 # Copyright (c) 2006, Montel Laurent, <montel@kde.org>
0009 # Copyright (c) 2007, Allen Winter, <winter@kde.org>
0010 # Redistribution and use is allowed according to the terms of the BSD license.
0011 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0012 
0013 include(FindLibraryWithDebug)
0014 
0015 if (QIMAGEBLITZ_INCLUDES AND QIMAGEBLITZ_LIBRARIES)
0016   set(QImageBlitz_FIND_QUIETLY TRUE)
0017 endif (QIMAGEBLITZ_INCLUDES AND QIMAGEBLITZ_LIBRARIES)
0018 
0019 if (NOT WIN32)
0020     # use pkg-config to get the directories and then use these values
0021     # in the FIND_PATH() and FIND_LIBRARY() calls
0022     find_package(PkgConfig)
0023     pkg_check_modules(PC_QIMAGEBLITZ QUIET qimageblitz)
0024 endif (NOT WIN32)
0025 
0026 find_path(QIMAGEBLITZ_INCLUDES
0027   NAMES
0028   qimageblitz.h
0029   PATH_SUFFIXES qimageblitz
0030   HINTS
0031   $ENV{QIMAGEBLITZDIR}/include
0032   ${PC_QIMAGEBLITZ_INCLUDEDIR}
0033   ${KDE4_INCLUDE_DIR}
0034   ${INCLUDE_INSTALL_DIR}
0035 )
0036 
0037 find_library_with_debug(QIMAGEBLITZ_LIBRARIES
0038   WIN32_DEBUG_POSTFIX d
0039   qimageblitz
0040   HINTS
0041   $ENV{QIMAGEBLITZDIR}/lib
0042   ${PC_QIMAGEBLITZ_LIBDIR}
0043   ${KDE4_LIB_DIR}
0044   ${LIB_INSTALL_DIR}
0045 )
0046 
0047 include(FindPackageHandleStandardArgs)
0048 find_package_handle_standard_args(QImageBlitz DEFAULT_MSG 
0049                                   QIMAGEBLITZ_INCLUDES QIMAGEBLITZ_LIBRARIES)
0050 
0051 mark_as_advanced(QIMAGEBLITZ_INCLUDES QIMAGEBLITZ_LIBRARIES)