mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 03:40:04 +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
|
|
@ -496,7 +496,7 @@ endif()
|
|||
target_include_directories(scwx-qt PUBLIC ${scwx-qt_SOURCE_DIR}/source
|
||||
${FTGL_INCLUDE_DIR}
|
||||
${IMGUI_INCLUDE_DIRS}
|
||||
${MBGL_INCLUDE_DIR}
|
||||
${MLN_INCLUDE_DIRS}
|
||||
${STB_INCLUDE_DIR}
|
||||
${TEXTFLOWCPP_INCLUDE_DIR})
|
||||
|
||||
|
|
@ -554,7 +554,7 @@ target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets
|
|||
Qt${QT_VERSION_MAJOR}::Positioning
|
||||
Boost::json
|
||||
Boost::timer
|
||||
qmaplibregl
|
||||
QMapLibre::Core
|
||||
$<$<CXX_COMPILER_ID:MSVC>:opengl32>
|
||||
Fontconfig::Fontconfig
|
||||
GeographicLib::GeographicLib
|
||||
|
|
@ -570,11 +570,11 @@ target_link_libraries(supercell-wx PRIVATE scwx-qt
|
|||
wxdata)
|
||||
|
||||
# Set DT_RUNPATH for Linux targets
|
||||
set_target_properties(qmaplibregl PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib")
|
||||
set_target_properties(Core PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib") # QMapLibre::Core
|
||||
set_target_properties(supercell-wx PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib")
|
||||
|
||||
install(TARGETS supercell-wx
|
||||
qmaplibregl
|
||||
Core # QMapLibre::Core
|
||||
RUNTIME_DEPENDENCIES
|
||||
PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-" "qt6"
|
||||
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
|
||||
|
|
@ -587,8 +587,8 @@ install(TARGETS supercell-wx
|
|||
|
||||
# NO_TRANSLATIONS is needed for Qt 6.5.0 (will be fixed in 6.5.1)
|
||||
# https://bugreports.qt.io/browse/QTBUG-112204
|
||||
qt_generate_deploy_app_script(TARGET qmaplibregl
|
||||
OUTPUT_SCRIPT deploy_script_qmaplibregl
|
||||
qt_generate_deploy_app_script(TARGET Core # QMapLibre::Core
|
||||
OUTPUT_SCRIPT deploy_script_qmaplibre_core
|
||||
NO_TRANSLATIONS
|
||||
NO_UNSUPPORTED_PLATFORM_ERROR)
|
||||
|
||||
|
|
@ -597,7 +597,7 @@ qt_generate_deploy_app_script(TARGET supercell-wx
|
|||
NO_TRANSLATIONS
|
||||
NO_UNSUPPORTED_PLATFORM_ERROR)
|
||||
|
||||
install(SCRIPT ${deploy_script_qmaplibregl}
|
||||
install(SCRIPT ${deploy_script_qmaplibre_core}
|
||||
COMPONENT supercell-wx)
|
||||
|
||||
install(SCRIPT ${deploy_script_scwx}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue