blob: a1e69ab634d3b0ca7af371304a62871a7226f730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# - Try to find freetype
# Once done this will define
#
# FREETYPE_FOUND - system has freetype
# FREETYPE_INCLUDE_DIRS - the freetype include directory
# FREETYPE_LIBRARIES - The freetype libraries
if(PKG_CONFIG_FOUND)
pkg_check_modules (FREETYPE freetype2)
else()
find_path(FREETYPE_INCLUDE_DIRS freetype/freetype.h)
find_library(FREETYPE_LIBRARIES NAMES freetype freetype246MT)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FreeType DEFAULT_MSG FREETYPE_INCLUDE_DIRS FREETYPE_LIBRARIES)
mark_as_advanced(FREETYPE_INCLUDE_DIRS FREETYPE_LIBRARIES)
|