summaryrefslogtreecommitdiff
path: root/indra/cmake/FreeType.cmake
blob: a36485f6d0fb6cf4f2c5a768cbb98d316f193336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- cmake -*-
include(Prebuilt)

if (USESYSTEMLIBS)
  include(FindPkgConfig)

  pkg_check_modules(FREETYPE REQUIRED freetype2)
else (USESYSTEMLIBS)
  use_prebuilt_binary(freetype)
  set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/freetype2/)
  set(FREETYPE_LIBRARIES freetype)
endif (USESYSTEMLIBS)

link_directories(${FREETYPE_LIBRARY_DIRS})