File: FindPangoCairo.cmake

package info (click to toggle)
darktable 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,236 kB
  • sloc: ansic: 200,593; cpp: 23,773; xml: 10,142; lisp: 7,084; sh: 2,489; perl: 1,701; ruby: 1,155; python: 426; makefile: 289; awk: 110; asm: 46
file content (32 lines) | stat: -rw-r--r-- 1,328 bytes parent folder | download | duplicates (6)
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
# - Find the native PangoCairo includes and library
#
# This module defines
#  PangoCairo_INCLUDE_DIR, where to find pangocairo.h, etc.
#  PangoCairo_LIBRARIES, the libraries to link against to use pangocairo.
#  PANGOCAIRO_FOUND, If false, do not try to use pangocairo.
# also defined, but not for general use are
#  PANGOCAIRO_LIBRARY, where to find the pangocairo library.


#=============================================================================
# Copyright 2010 henrik andersson
#=============================================================================

SET(PANGOCAIRO_FIND_REQUIRED ${PangoCairo_FIND_REQUIRED})

find_path(PANGOCAIRO_INCLUDE_DIR pango/pangocairo.h PATH_SUFFIXES pango-1.0/ )
mark_as_advanced(PANGOCAIRO_INCLUDE_DIR)

set(PANGOCAIRO_NAMES ${PANGOCAIRO_NAMES} pangocairo-1.0 libpangocairo-1.0)
find_library(PANGOCAIRO_LIBRARY NAMES ${PANGOCAIRO_NAMES} )
mark_as_advanced(PANGOCAIRO_LIBRARY)

# handle the QUIETLY and REQUIRED arguments and set PANGOCAIRO_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PANGOCAIRO DEFAULT_MSG PANGOCAIRO_LIBRARY PANGOCAIRO_INCLUDE_DIR)

IF(PANGOCAIRO_FOUND)
  SET(PangoCairo_LIBRARIES ${PANGOCAIRO_LIBRARY})
  SET(PangoCairo_INCLUDE_DIRS ${PANGOCAIRO_INCLUDE_DIR})
ENDIF(PANGOCAIRO_FOUND)