diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-07-23 17:35:43 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-09-17 12:28:55 +0300 |
commit | 8ee6cfa8fb022a7319ce83e795f4ff0d7e747ad7 (patch) | |
tree | fa7315445fd2808c35ac852f186ca592ba56b898 /vendor/nunicode.cmake | |
parent | e3421e042fe720d4d7b13457c4597921f31f3bcd (diff) | |
download | qtlocation-mapboxgl-8ee6cfa8fb022a7319ce83e795f4ff0d7e747ad7.tar.gz |
[build] Cosmetics on vendor packages
- Add include guards on all the files
- Add a vendor package for sqlite and gtest
- Use relative paths to all the files
Diffstat (limited to 'vendor/nunicode.cmake')
-rw-r--r-- | vendor/nunicode.cmake | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/vendor/nunicode.cmake b/vendor/nunicode.cmake index d318b8a265..0a310a7bea 100644 --- a/vendor/nunicode.cmake +++ b/vendor/nunicode.cmake @@ -1,21 +1,25 @@ -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 +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(nunicode PRIVATE +target_compile_definitions(mbgl-vendor-nunicode PRIVATE NU_BUILD_STATIC ) -target_compile_options(nunicode PRIVATE +target_compile_options(mbgl-vendor-nunicode PRIVATE -Wno-error ) -target_include_directories(nunicode SYSTEM PUBLIC - ${CMAKE_SOURCE_DIR}/vendor/nunicode/include +target_include_directories(mbgl-vendor-nunicode SYSTEM PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/nunicode/include ) |