PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/FreeType.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 20 lines | 15 code | 4 blank | 1 comment | 4 complexity | e7f9d9b730f2ccb579c9851f02eeab8d MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4if (STANDALONE)
 5  include(FindPkgConfig)
 6
 7  pkg_check_modules(FREETYPE REQUIRED freetype2)
 8else (STANDALONE)
 9  use_prebuilt_binary(freetype)
10  if (LINUX)
11    set(FREETYPE_INCLUDE_DIRS
12        ${LIBS_PREBUILT_DIR}/include)
13  else (LINUX)
14    set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
15  endif (LINUX)
16
17  set(FREETYPE_LIBRARIES freetype)
18endif (STANDALONE)
19
20link_directories(${FREETYPE_LIBRARY_DIRS})