From 3af104790585d8dccc3618b9b5ff51ac3fdb2daa Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 12 Jun 2007 16:13:26 +0000 Subject: [PATCH] moving the imlib check in extragear/graphics, kuickshow needs it svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=674580 --- cmake/modules/FindIMLIB.cmake | 70 ----------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 cmake/modules/FindIMLIB.cmake diff --git a/cmake/modules/FindIMLIB.cmake b/cmake/modules/FindIMLIB.cmake deleted file mode 100644 index fd7ddd46b..000000000 --- a/cmake/modules/FindIMLIB.cmake +++ /dev/null @@ -1,70 +0,0 @@ -# - Try to find the Imlib graphics library -# Once done this will define -# -# IMLIB_FOUND - system has IMLIB -# IMLIB_INCLUDE_DIR - the IMLIB include directory -# IMLIB_LIBRARIES - Link these to use IMLIB -# IMLIB_DEFINITIONS - Compiler switches required for using IMLIB - -# Copyright (c) 2006, Dirk Mueller, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -IF (DEFINED CACHED_IMLIB) - - # in cache already - IF ("${CACHED_IMLIB}" STREQUAL "YES") - SET(IMLIB_FOUND TRUE) - ENDIF ("${CACHED_IMLIB}" STREQUAL "YES") - -ELSE (DEFINED CACHED_IMLIB) - -IF (NOT WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - INCLUDE(UsePkgConfig) - - PKGCONFIG(imlib _IMLIBIncDir _IMLIBLinkDir _IMLIBLinkFlags _IMLIBCflags) - - set(IMLIB_DEFINITIONS ${_IMLIBCflags}) -ENDIF (NOT WIN32) - - FIND_PATH(IMLIB_INCLUDE_DIR Imlib.h - ${_IMLIBIncDir} - /usr/include - /usr/local/include - ) - - FIND_LIBRARY(IMLIB_LIBRARIES NAMES Imlib libImlib - PATHS - ${_IMLIBLinkDir} - /usr/lib - /usr/local/lib - ) - - if (IMLIB_INCLUDE_DIR AND IMLIB_LIBRARIES) - SET(IMLIB_FOUND true) - endif (IMLIB_INCLUDE_DIR AND IMLIB_LIBRARIES) - - if (IMLIB_FOUND) - set(CACHED_IMLIB "YES") - if (NOT IMLIB_FIND_QUIETLY) - message(STATUS "Found IMLIB: ${IMLIB_LIBRARIES}") - endif (NOT IMLIB_FIND_QUIETLY) - else (IMLIB_FOUND) - set(CACHED_IMLIB "NO") - if (NOT IMLIB_FIND_QUIETLY) - message(STATUS "didn't find IMLIB") - endif (NOT IMLIB_FIND_QUIETLY) - if (IMLIB_FIND_REQUIRED) - message(FATAL_ERROR "Could NOT find IMLIB") - endif (IMLIB_FIND_REQUIRED) - endif (IMLIB_FOUND) - - MARK_AS_ADVANCED(IMLIB_INCLUDE_DIR IMLIB_LIBRARIES) - - set(CACHED_IMLIB ${CACHED_IMLIB} CACHE INTERNAL "If liImlib was checked") - -ENDIF (DEFINED CACHED_IMLIB)