Newer
Older
Bryan O'Sullivan
committed
# -*- cmake -*-
Jennifer Leech
committed
include(Prebuilt)
Bryan O'Sullivan
committed
Bryan O'Sullivan
committed
include(FindPkgConfig)
pkg_check_modules(FREETYPE REQUIRED freetype2)
pkg_check_modules(FONTCONFIG REQUIRED fontconfig)
else ()
Jennifer Leech
committed
use_prebuilt_binary(freetype)
if(DARWIN)
set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/freetype2)
else()
set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/)
endif()
Bryan O'Sullivan
committed
set(FREETYPE_LIBRARIES freetype)