summaryrefslogtreecommitdiff
path: root/vendor/nunicode.cmake
blob: 0a310a7beab347acb32753f0e6fc9a20ab1e92c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if(TARGET mbgl-vendor-nunicode)
    return()
endif()

add_library(mbgl-vendor-nunicode STATIC
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/ducet.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/strcoll.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/strings.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/tolower.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/tounaccent.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/toupper.c
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/src/libnu/utf8.c
)

target_compile_definitions(mbgl-vendor-nunicode PRIVATE
    NU_BUILD_STATIC
)

target_compile_options(mbgl-vendor-nunicode PRIVATE
    -Wno-error
)

target_include_directories(mbgl-vendor-nunicode SYSTEM PUBLIC
    ${CMAKE_CURRENT_LIST_DIR}/nunicode/include
)