Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 82 lines (75 sloc) 3.11 kB
cf6cb7c @petrm Added Clutter to cmake-addons
petrm authored
1 # Copyright (c) 2009, Whispersoft s.r.l.
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Whispersoft s.r.l. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30 # Finds Pango library
31 #
32 # Pango_1_0_INCLUDE_DIR - where to find pango.h, etc.
33 # Pango_1_0_LIBRARIES - List of libraries when using Pango.
34 # Pango_1_0_FOUND - True if Pango found.
35 #
36
37 if (Pango_1_0_INCLUDE_DIR)
38 # Already in cache, be silent
39 set(Pango_1_0_FIND_QUIETLY TRUE)
40 endif (Pango_1_0_INCLUDE_DIR)
41
42 find_path(Pango_1_0_INCLUDE_DIR pango/pango.h
43 /opt/local/include
44 /usr/local/include
45 /usr/include
46 /opt/local/include/pango-1.0
47 /usr/local/include/pango-1.0
48 /usr/include/pango-1.0
49 )
50
51 set(Pango_1_0_NAMES pango-1.0)
52 find_library(Pango_1_0_LIBRARY
53 NAMES ${Pango_1_0_NAMES}
54 PATHS /usr/lib /usr/local/lib /opt/local/lib
55 )
56
57 if (Pango_1_0_INCLUDE_DIR AND Pango_1_0_LIBRARY)
58 set(Pango_1_0_FOUND TRUE)
59 set( Pango_1_0_LIBRARIES ${Pango_1_0_LIBRARY} )
60 else (Pango_1_0_INCLUDE_DIR AND Pango_1_0_LIBRARY)
61 set(Pango_1_0_FOUND FALSE)
62 set(Pango_1_0_LIBRARIES)
63 endif (Pango_1_0_INCLUDE_DIR AND Pango_1_0_LIBRARY)
64
65 if (Pango_1_0_FOUND)
66 if (NOT Pango_1_0_FIND_QUIETLY)
67 message(STATUS "Found Pango_1_0: ${Pango_1_0_LIBRARY}")
68 endif (NOT Pango_1_0_FIND_QUIETLY)
69 else (Pango_1_0_FOUND)
70 if (Pango_1_0_FIND_REQUIRED)
71 message(STATUS "Looked for Pango_1_0 libraries named ${Pango_1_0_NAMES}.")
72 message(STATUS "Include file detected: [${Pango_1_0_INCLUDE_DIR}].")
73 message(STATUS "Lib file detected: [${Pango_1_0_LIBRARY}].")
74 message(FATAL_ERROR "=========> Could NOT find Pango_1_0 library")
75 endif (Pango_1_0_FIND_REQUIRED)
76 endif (Pango_1_0_FOUND)
77
78 mark_as_advanced(
79 Pango_1_0_LIBRARY
80 Pango_1_0_INCLUDE_DIR
81 )
Something went wrong with that request. Please try again.