summaryrefslogtreecommitdiff
path: root/indra/cmake/ICU4C.cmake
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-03-12 21:14:45 +0200
committerGitHub <noreply@github.com>2024-03-12 21:14:45 +0200
commit6b285674bba145dd70b90a06248ba8dd7fdc474a (patch)
tree110015e1703b331715fbf7fb1a01639c74c47e62 /indra/cmake/ICU4C.cmake
parent748c0eb50d87a3f8895b25791409ce5e2e4926c4 (diff)
parenteb1ed3896fd82d4f115b2ef6ba742315ad32cc27 (diff)
Merge main into DRTVWR-600-maint-A
Diffstat (limited to 'indra/cmake/ICU4C.cmake')
-rw-r--r--indra/cmake/ICU4C.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/cmake/ICU4C.cmake b/indra/cmake/ICU4C.cmake
new file mode 100644
index 0000000000..7b27665483
--- /dev/null
+++ b/indra/cmake/ICU4C.cmake
@@ -0,0 +1,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 )
+else()
+ message(FATAL_ERROR "Invalid platform")
+endif()
+
+target_include_directories( ll::icu4c SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/unicode )
+
+use_prebuilt_binary(dictionaries)