aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2018-12-27 12:35:48 +0100
committerfiaxh <git@lightrise.org>2018-12-27 13:01:35 +0100
commit965f4da75ae5a5b308191bd61890b4277504f5b1 (patch)
tree038763267d512b8f64681af80fdeec4e09de6f17 /cmake
parentd0d68f5878267320eb99ad544e9117553af11532 (diff)
downloaddino-965f4da75ae5a5b308191bd61890b4277504f5b1.tar.gz
dino-965f4da75ae5a5b308191bd61890b4277504f5b1.zip
Detect emoji-only messages and display them larger
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)