File: FindFriBiDi.cmake

package info (click to toggle)
mapserver 8.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,492 kB
  • sloc: ansic: 137,759; cpp: 124,149; python: 3,175; xml: 1,722; yacc: 1,114; cs: 1,001; sh: 836; lex: 778; java: 588; perl: 489; makefile: 383; tcl: 158; ruby: 55
file content (30 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (5)
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
# - Find Fribidi
# Find the Fribidi includes and libraries
#
# Following variables are provided:
# FRIBIDI_FOUND
#     True if Fribidi has been found
# FRIBIDI_INCLUDE_DIR
#     The include directories of Fribidi
# FRIBIDI_LIBRARY
#     Fribidi library list

find_package(PkgConfig)
pkg_check_modules(PC_FRIBIDI QUIET fribidi>=0.19.0)

find_path(FRIBIDI_INCLUDE_DIR
   NAMES fribidi.h
   HINTS ${PC_FRIBIDI_INCLUDE_DIR} ${PC_FRIBIDI_INCLUDE_DIRS}
   PATH_SUFFIXES fribidi
)

find_library(FRIBIDI_LIBRARY
   NAME fribidi
   HINTS ${PC_FRIBIDI_LIBDIR} ${PC_FRIBIDI_LIBRARY_DIRS}
)

set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FriBiDi DEFAULT_MSG FRIBIDI_LIBRARY FRIBIDI_INCLUDE_DIR)
mark_as_advanced(FRIBIDI_LIBRARY FRIBIDI_INCLUDE_DIR)