ContextMenu is overlapping with IME.
[framework/web/webkit-efl.git] / Source / cmake / FindPango.cmake
1 # - Try to find Pango
2 # Once done, this will define
3 #
4 #  Pango_FOUND - system has Pango
5 #  Pango_INCLUDE_DIRS - the Pango include directories
6 #  Pango_LIBRARIES - link these to use Pango
7
8 include(LibFindMacros)
9
10 # Dependencies
11 libfind_package(Pango Freetype)
12
13 # Use pkg-config to get hints about paths
14 libfind_pkg_check_modules(Pango_PKGCONF pango)
15 libfind_pkg_check_modules(Pango_Cairo_PKGCONF pango)
16 libfind_pkg_check_modules(Pango_Ft2_PKGCONF pangoft2)
17
18 # Include dir
19 find_path(Pango_INCLUDE_DIR
20   NAMES pango/pango.h
21   PATHS ${Pango_PKGCONF_INCLUDE_DIRS}
22   PATH_SUFFIXES pango-1.0
23 )
24
25 find_path(Pango_Cairo_INCLUDE_DIR
26   NAMES pango/pangocairo.h
27   PATHS ${Pango_Cairo_PKGCONF_INCLUDE_DIRS}
28   PATH_SUFFIXES pango-1.0
29 )
30
31 # Finally the library itself
32 find_library(Pango_LIBRARY
33   NAMES pango-1.0
34   PATHS ${Pango_PKGCONF_LIBRARY_DIRS}
35 )
36
37 find_library(Pango_Cairo_LIBRARY
38   NAMES pangocairo-1.0
39   PATHS ${Pango_Cairo_PKGCONF_LIBRARY_DIRS}
40 )
41
42 find_library(Pango_Ft2_LIBRARY
43   NAMES pangoft2-1.0
44   PATHS ${Pango_Ft2_PKGCONF_LIBRARY_DIRS}
45 )
46
47 # Set the include dir variables and the libraries and let libfind_process do the rest.
48 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
49 set(Pango_PROCESS_INCLUDES Pango_INCLUDE_DIR FREETYPE_INCLUDE_DIRS)
50 set(Pango_PROCESS_LIBS Pango_LIBRARY FREETYPE_LIBRARIES)
51 libfind_process(Pango)
52