From 55f810ed4e6bba5c2f31c062218f58a45d4e8403 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 31 Oct 2007 21:03:07 +0000 Subject: copy the chack to reflect the real name of the qimageblitz library svn path=/trunk/KDE/kdelibs/; revision=731497 --- modules/FindQImageBlitz.cmake | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 modules/FindQImageBlitz.cmake (limited to 'modules') diff --git a/modules/FindQImageBlitz.cmake b/modules/FindQImageBlitz.cmake new file mode 100644 index 00000000..24a5d142 --- /dev/null +++ b/modules/FindQImageBlitz.cmake @@ -0,0 +1,42 @@ +# - Try to find the qimageblitz lib +# Once done this will define +# +# QIMAGEBLITZ_FOUND - system has qimageblitz lib +# QIMAGEBLITZ_INCLUDES - the qimageblitz include directory +# QIMAGEBLITZ_LIBRARIES - The libraries needed to use qimageblitz +# +# Copyright (c) 2006, Montel Laurent, +# Copyright (c) 2007, Allen Winter, +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +include(FindLibraryWithDebug) + +if (QIMAGEBLITZ_INCLUDES AND QIMAGEBLITZ_LIBRARIES) + set(QImageBlitz_FIND_QUIETLY TRUE) +endif (QIMAGEBLITZ_INCLUDES AND QIMAGEBLITZ_LIBRARIES) + +find_path(QIMAGEBLITZ_INCLUDES + NAMES + qimageblitz.h + PATH_SUFFIXES qimageblitz + PATHS + $ENV{QIMAGEBLITZDIR}/include + ${KDE4_INCLUDE_DIR} + ${INCLUDE_INSTALL_DIR} +) + +find_library_with_debug(QIMAGEBLITZ_LIBRARIES + WIN32_DEBUG_POSTFIX d + qimageblitz + PATHS + $ENV{QIMAGEBLITZDIR}/lib + ${KDE4_LIB_DIR} + ${LIB_INSTALL_DIR} +) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(QImageBlitz DEFAULT_MSG + QIMAGEBLITZ_INCLUDES QIMAGEBLITZ_LIBRARIES) + +mark_as_advanced(QIMAGEBLITZ_INCLUDES QIMAGEBLITZ_LIBRARIES) -- cgit v1.2.1