summaryrefslogtreecommitdiff
path: root/indra/cmake/FreeType.cmake
blob: 43a9d282d0e95d6cc7cc8f75e4bd5d03a45e3ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- cmake -*-
include(Prebuilt)

if (STANDALONE)
  include(FindPkgConfig)

  pkg_check_modules(FREETYPE REQUIRED freetype2)
else (STANDALONE)
  use_prebuilt_binary(freetype)
  if (LINUX)
    set(FREETYPE_INCLUDE_DIRS
        ${LIBS_PREBUILT_DIR}/include)
  else (LINUX)
    set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
  endif (LINUX)

  set(FREETYPE_LIBRARIES freetype)
endif (STANDALONE)

link_directories(${FREETYPE_LIBRARY_DIRS})