mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:20:05 +00:00
Use maplibre-native-qt dependency instead of mapbox-gl-native
This commit is contained in:
parent
31ade020ac
commit
db0d26a4ad
4 changed files with 54 additions and 9 deletions
4
external/CMakeLists.txt
vendored
4
external/CMakeLists.txt
vendored
|
|
@ -8,7 +8,7 @@ set_property(DIRECTORY
|
|||
date.cmake
|
||||
hsluv-c.cmake
|
||||
imgui.cmake
|
||||
mapbox-gl-native.cmake
|
||||
maplibre-native-qt.cmake
|
||||
stb.cmake
|
||||
textflowcpp.cmake
|
||||
units.cmake)
|
||||
|
|
@ -17,7 +17,7 @@ include(aws-sdk-cpp.cmake)
|
|||
include(date.cmake)
|
||||
include(hsluv-c.cmake)
|
||||
include(imgui.cmake)
|
||||
include(mapbox-gl-native.cmake)
|
||||
include(maplibre-native-qt.cmake)
|
||||
include(stb.cmake)
|
||||
include(textflowcpp.cmake)
|
||||
include(units.cmake)
|
||||
|
|
|
|||
43
external/maplibre-native-qt.cmake
vendored
Normal file
43
external/maplibre-native-qt.cmake
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
set(PROJECT_NAME scwx-mln)
|
||||
|
||||
set(gtest_disable_pthreads ON)
|
||||
set(MLN_WITH_QT ON)
|
||||
set(MLN_QT_WITH_INTERNAL_ICU ON)
|
||||
set(MLN_QT_WITH_LOCATION OFF)
|
||||
add_subdirectory(maplibre-native-qt)
|
||||
|
||||
find_package(ZLIB)
|
||||
target_include_directories(mbgl-core PRIVATE ${ZLIB_INCLUDE_DIRS})
|
||||
target_link_libraries(mbgl-core INTERFACE ${ZLIB_LIBRARIES})
|
||||
|
||||
if (MSVC)
|
||||
# Produce PDB file for debug
|
||||
target_compile_options(mbgl-core PRIVATE "$<$<CONFIG:Release>:/Zi>")
|
||||
target_compile_options(Core PRIVATE "$<$<CONFIG:Release>:/Zi>")
|
||||
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
|
||||
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
|
||||
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
|
||||
else()
|
||||
target_compile_options(mbgl-core PRIVATE "$<$<CONFIG:Release>:-g>")
|
||||
target_compile_options(Core PRIVATE "$<$<CONFIG:Release>:-g>")
|
||||
endif()
|
||||
|
||||
set(MLN_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/maplibre-native-qt/vendor/maplibre-native/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/maplibre-native-qt/src/core/include
|
||||
${CMAKE_CURRENT_BINARY_DIR}/maplibre-native-qt/src/core/include PARENT_SCOPE)
|
||||
|
||||
set_target_properties(test_mln_core PROPERTIES EXCLUDE_FROM_ALL True)
|
||||
set_target_properties(test_mln_widgets PROPERTIES EXCLUDE_FROM_ALL True)
|
||||
set_target_properties(Widgets PROPERTIES EXCLUDE_FROM_ALL True)
|
||||
|
||||
set_target_properties(test_mln_core PROPERTIES FOLDER mln/exclude)
|
||||
set_target_properties(test_mln_widgets PROPERTIES FOLDER mln/exclude)
|
||||
set_target_properties(Widgets PROPERTIES FOLDER mln/exclude)
|
||||
|
||||
set_target_properties(Core PROPERTIES FOLDER mln)
|
||||
set_target_properties(mbgl-core PROPERTIES FOLDER mln)
|
||||
set_target_properties(mbgl-vendor-csscolorparser PROPERTIES FOLDER mln)
|
||||
set_target_properties(mbgl-vendor-nunicode PROPERTIES FOLDER mln)
|
||||
set_target_properties(mbgl-vendor-parsedate PROPERTIES FOLDER mln)
|
||||
set_target_properties(mbgl-vendor-sqlite PROPERTIES FOLDER mln)
|
||||
Loading…
Add table
Add a link
Reference in a new issue