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

set(ICU4C_FIND_QUIETLY ON)
set(ICU4C_FIND_REQUIRED ON)

if (USESYSTEMLIBS)
  include(FindICU4C)
else (USESYSTEMLIBS)
  use_prebuilt_binary(icu4c)
  if (WINDOWS)
    set(ICU4C_LIBRARY icuuc)
  #elseif(DARWIN)
  #  set(ICU4C_LIBRARY ...)
  #elseif(LINUX)
  #  set(ICU4C_LIBRARY ...)
  else()
    message(FATAL_ERROR "Invalid platform")
  endif()
  set(ICU4C_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/unicode)
  use_prebuilt_binary(dictionaries)
endif (USESYSTEMLIBS)