File: FindPango.cmake

package info (click to toggle)
performous 1.1+git20190701.9928c27-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,592 kB
  • sloc: cpp: 27,936; ansic: 736; xml: 464; sh: 228; python: 204; makefile: 33
file content (33 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (2)
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
# - Try to find Pango
# Once done, this will define
#
#  Pango_FOUND - system has Pango
#  Pango_INCLUDE_DIRS - the Pango include directories
#  Pango_LIBRARIES - link these to use Pango

include(LibFindMacros)

# Dependencies
libfind_package(Pango Harfbuzz)
libfind_package(Pango Freetype)
libfind_package(Pango Glib)
libfind_package(Pango GObject)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(Pango_PKGCONF pango)

# Include dir
find_path(Pango_INCLUDE_DIR
  NAMES pango/pango.h
  HINTS ${Pango_PKGCONF_INCLUDE_DIRS}
  PATH_SUFFIXES pango-1.0
)

# Finally the library itself
find_library(Pango_LIBRARY
  NAMES pango-1.0
  HINTS ${Pango_PKGCONF_LIBRARY_DIRS}
)

libfind_process(Pango)