]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - cmake/FindPango.cmake
netradiant: strip 16-bit png to 8-bit, fix #153
[xonotic/netradiant.git] / cmake / FindPango.cmake
1 find_package(PkgConfig)
2 if (PKG_CONFIG_FOUND)
3     if (Pango_FIND_REQUIRED)
4         set(_pkgconfig_REQUIRED REQUIRED)
5     endif ()
6     pkg_search_module(Pango ${_pkgconfig_REQUIRED} pango pangocairo)
7     pkg_search_module(PangoFT2 ${_pkgconfig_REQUIRED} pangoft2)
8 else ()
9     # find_path(Pango_INCLUDE_DIRS)
10     # find_library(Pango_LIBRARIES)
11     if (Pango_INCLUDE_DIRS AND Pango_LIBRARIES)
12         set(Pango_FOUND 1)
13         if (NOT Pango_FIND_QUIETLY)
14             message(STATUS "Found Pango: ${Pango_LIBRARIES}")
15         endif ()
16     elseif (Pango_FIND_REQUIRED)
17         message(SEND_ERROR "Could not find Pango")
18     elseif (NOT Pango_FIND_QUIETLY)
19         message(STATUS "Could not find Pango")
20     endif ()
21 endif ()
22 mark_as_advanced(Pango_INCLUDE_DIRS Pango_LIBRARIES)
23 mark_as_advanced(PangoFT2_INCLUDE_DIRS PangoFT2_LIBRARIES)