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

0001 # - Try to find the LibArt 2D graphics library
0002 # Once done this will define
0003 #
0004 #  LIBART_FOUND - system has the LibArt
0005 #  LIBART_INCLUDE_DIR - the LibArt include directory
0006 #  LIBART_LIBRARIES - The libraries needed to use LibArt
0007 
0008 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
0009 #
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 
0014 if (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
0015 
0016   # in cache already
0017   SET(LIBART_FOUND TRUE)
0018 
0019 else (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
0020 
0021   IF (NOT WIN32)
0022     find_package(PkgConfig)
0023 
0024     # use pkg-config to get the directories and then use these values
0025     # in the FIND_PATH() and FIND_LIBRARY() calls
0026     pkg_check_modules(PC_LIBART QUIET libart-2.0)
0027 
0028     ######### ?? where is this used ?? ###############
0029     set(LIBART_DEFINITIONS ${PC_LIBART_CFLAGS_OTHER})
0030   ENDIF (NOT WIN32)
0031 
0032   FIND_PATH(LIBART_INCLUDE_DIR NAMES libart_lgpl/libart.h
0033      PATHS
0034      ${PC_LIBART_INCLUDEDIR}
0035      ${PC_LIBART_INCLUDE_DIRS}
0036      PATH_SUFFIXES libart-2.0
0037   )
0038   
0039   FIND_LIBRARY(LIBART_LIBRARIES NAMES art_lgpl_2
0040      PATHS
0041      ${PC_LIBART_LIBDIR}
0042      ${PC_LIBART_LIBRARY_DIRS}
0043   )
0044   
0045   
0046   if (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
0047      set(LIBART_FOUND TRUE)
0048   endif (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
0049   
0050   
0051   if (LIBART_FOUND)
0052      if (NOT LibArt_FIND_QUIETLY)
0053         message(STATUS "Found libart: ${LIBART_LIBRARIES}")
0054      endif (NOT LibArt_FIND_QUIETLY)
0055   else (LIBART_FOUND)
0056      if (LibArt_FIND_REQUIRED)
0057         message(FATAL_ERROR "Could NOT find libart")
0058      endif (LibArt_FIND_REQUIRED)
0059   endif (LIBART_FOUND)
0060 
0061   MARK_AS_ADVANCED(LIBART_INCLUDE_DIR LIBART_LIBRARIES)
0062 
0063 endif (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)