* QMapboxGLSettings functions for changing default options and getting default styles
* [qt] allow to build without widgets and other cmake improvements
* [qt] Install include/mbgl for development
* [qt] library static/shared install+export
* [qt] Add missing mbgl-compiler-options dependency for 'qmapboxgl'
* [qt] Raise CMAKE_OSX_DEPLOYMENT_TARGET from 10.13 to 13.0
* [qt] Add Qt::Sql dependency also to the final library. Build qmapboxgl as OBJECT lib inside QtLocation plugin.
* Remove Qt::Sql dependency from 'qmapboxgl'. Not really needed.
* Set CMake config files path back to ${CMAKE_INSTALL_LIBDIR}/cmake/QMapboxGL/
* [qt] Set CMAKE_OSX_DEPLOYMENT_TARGET only if it is not yet set
* [qt] Support CMake v3.11 and earlier versions
* [qt] Comment out 'iOS_static' from CI until it is fixed.
Co-authored-by: Rinigus <rinigus.git@gmail.com>
35 lines
932 B
CMake
35 lines
932 B
CMake
if(TARGET mbgl-vendor-nunicode)
|
|
return()
|
|
endif()
|
|
|
|
if(MBGL_QT_STATIC)
|
|
add_library(mbgl-vendor-nunicode OBJECT)
|
|
else()
|
|
add_library(mbgl-vendor-nunicode STATIC)
|
|
endif()
|
|
|
|
target_sources(
|
|
mbgl-vendor-nunicode PRIVATE
|
|
${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
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
target_compile_options(mbgl-vendor-nunicode PRIVATE -Wno-error)
|
|
endif()
|
|
|
|
target_include_directories(
|
|
mbgl-vendor-nunicode SYSTEM
|
|
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/nunicode/include
|
|
)
|