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