summaryrefslogtreecommitdiff
path: root/indra/cmake/FreeType.cmake
blob: 02c5b37f28410fc81102f845d38f3a9049701ce2 (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)
  set(FREETYPE_LIBRARIES freetype)
endif (USESYSTEMLIBS)

link_directories(${FREETYPE_LIBRARY_DIRS})