mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
If webengine support enabled, link core to webengine
This commit is contained in:
parent
705f863f13
commit
0bc932eb99
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user