aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindICU.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindICU.cmake b/cmake/FindICU.cmake
new file mode 100644
index 00000000..d033d0df
--- /dev/null
+++ b/cmake/FindICU.cmake
@@ -0,0 +1,11 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(ICU
+ PKG_CONFIG_NAME icu-uc
+ LIB_NAMES icuuc icudata
+ INCLUDE_NAMES unicode/umachine.h
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(ICU
+ REQUIRED_VARS ICU_LIBRARY
+ VERSION_VAR ICU_VERSION)