If webengine support enabled, link core to webengine

This commit is contained in:
Nyall Dawson 2023-12-15 09:43:18 +10:00
parent 705f863f13
commit 0bc932eb99
2 changed files with 9 additions and 0 deletions

View File

@ -521,6 +521,9 @@ if(WITH_CORE)
if(WITH_QTWEBKIT)
message(FATAL_ERROR "QtWebEngine support cannot be enabled if Qt WebKit support is enabled")
endif()
find_package(${QT_VERSION_BASE} COMPONENTS WebEngineCore REQUIRED)
add_definitions(-DWITH_QTWEBENGINE)
message(STATUS "QtWebEngine support enabled")
set(HAVE_WEBENGINE TRUE) # used in qgsconfig.h

View File

@ -2453,6 +2453,12 @@ if (WITH_PDAL)
)
endif()
if (WITH_QTWEBENGINE)
target_link_libraries(qgis_core
${QT_VERSION_BASE}::WebEngineCore
)
endif()
if (FORCE_STATIC_LIBS)
target_link_libraries(qgis_core
provider_wms_a