diff unicode-config.cmake @ 21:887a8fd73d1e

cmake: add support
author David Demelier <markand@malikania.fr>
date Mon, 21 Mar 2022 09:18:14 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unicode-config.cmake	Mon Mar 21 09:18:14 2022 +0100
@@ -0,0 +1,8 @@
+include("${CMAKE_CURRENT_LIST_DIR}/unicode-targets.cmake")
+
+# Prefer shared version if found.
+if (TARGET unicode::libunicode-shared)
+	add_library(unicode::libunicode ALIAS unicode::libunicode-shared)
+else ()
+	add_library(unicode::libunicode ALIAS unicode::libunicode-static)
+endif ()