blob: 8628219616b0c432f351fdcadb29cbe002bef596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# - Try to find the LibArt 2D graphics library
# Once done this will define
#
# LIBART_FOUND - system has the LibArt
# LIBART_INCLUDE_DIR - the LibArt include directory
# LIBART_LIBRARIES - The libraries needed to use LibArt
#
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
# in cache already
SET(LIBART_FOUND TRUE)
else (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
IF (NOT WIN32)
INCLUDE(UsePkgConfig)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
PKGCONFIG(libart-2.0 _libArtIncDir _libArtLinkDir _libArtLinkFlags _libArtCflags)
######### ?? where is this used ?? ###############
set(LIBART_DEFINITIONS ${_libArtCflags})
ENDIF (NOT WIN32)
FIND_PATH(LIBART_INCLUDE_DIR libart_lgpl/libart.h
${_libArtIncDir}/libart-2.0
/usr/include/libart-2.0
/usr/local/include/libart-2.0
)
FIND_LIBRARY(LIBART_LIBRARIES NAMES art_lgpl_2
PATHS
${_libArtLinkDir}
)
if (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
set(LIBART_FOUND TRUE)
endif (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
if (LIBART_FOUND)
if (NOT LibArt_FIND_QUIETLY)
message(STATUS "Found libart: ${LIBART_LIBRARIES}")
endif (NOT LibArt_FIND_QUIETLY)
else (LIBART_FOUND)
if (LibArt_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find libart")
endif (LibArt_FIND_REQUIRED)
endif (LIBART_FOUND)
MARK_AS_ADVANCED(LIBART_INCLUDE_DIR LIBART_LIBRARIES)
endif (LIBART_INCLUDE_DIR AND LIBART_LIBRARIES)
|