File: FindHarfbuzz.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 (27 lines) | stat: -rw-r--r-- 612 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
# - Try to find Harfbuzz
# Once done, this will define
#
#  Harfbuzz_FOUND - system has Harfbuzz
#  Harfbuzz_INCLUDE_DIRS - the Harfbuzz include directories
#  Harfbuzz_LIBRARIES - link these to use Harfbuzz

include(LibFindMacros)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(Harfbuzz_PKGCONF harfbuzz)

# Include dir
find_path(Harfbuzz_INCLUDE_DIR
  NAMES harfbuzz/hb.h
  HINTS ${Harfbuzz_PKGCONF_INCLUDE_DIRS}
  PATH_SUFFIXES harfbuzz
)

# Finally the library itself
find_library(Harfbuzz_LIBRARY
  NAMES harfbuzz
  HINTS ${Harfbuzz_PKGCONF_LIBRARY_DIRS}
)

libfind_process(Harfbuzz)