summaryrefslogtreecommitdiff
path: root/vendor/nunicode.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nunicode.cmake')
-rw-r--r--vendor/nunicode.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/nunicode.cmake b/vendor/nunicode.cmake
new file mode 100644
index 0000000000..d318b8a265
--- /dev/null
+++ b/vendor/nunicode.cmake
@@ -0,0 +1,21 @@
+add_library(nunicode STATIC
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/ducet.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/strcoll.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/strings.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/tolower.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/tounaccent.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/toupper.c
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/src/libnu/utf8.c
+)
+
+target_compile_definitions(nunicode PRIVATE
+ NU_BUILD_STATIC
+)
+
+target_compile_options(nunicode PRIVATE
+ -Wno-error
+)
+
+target_include_directories(nunicode SYSTEM PUBLIC
+ ${CMAKE_SOURCE_DIR}/vendor/nunicode/include
+)