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

include_guard()

add_library( ll::icu4c INTERFACE IMPORTED )


use_system_binary(icu4c)
use_prebuilt_binary(icu4c)
if (WINDOWS)
  target_link_libraries( ll::icu4c INTERFACE  icuuc)
elseif(DARWIN)
  target_link_libraries( ll::icu4c INTERFACE  icuuc)
elseif(LINUX)
  target_link_libraries( ll::icu4c INTERFACE  ${LIBS_PREBUILT_DIR}/lib/libicuuc.a)
else()
  message(FATAL_ERROR "Invalid platform")
endif()

target_include_directories( ll::icu4c SYSTEM INTERFACE  ${LIBS_PREBUILT_DIR}/include/unicode )

use_prebuilt_binary(dictionaries)