mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
CMake: Split QtWebEngine find_package calls
Required for cmake to search for QtWebEngine in a seperate prefix, for example when building flatpaks, where Qt is in /usr but QtWebEngine is in /app since org.kde.Sdk 5.13.
This commit is contained in:
parent
5ed4e01ce0
commit
c2afba9ed3
@ -45,7 +45,9 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_NO_CAS
|
|||||||
|
|
||||||
# Mandatory: Qt5
|
# Mandatory: Qt5
|
||||||
set(QT_MIN_VERSION "5.9.0")
|
set(QT_MIN_VERSION "5.9.0")
|
||||||
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebEngine WebEngineWidgets WebChannel)
|
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebChannel)
|
||||||
|
find_package(Qt5WebEngine ${QT_MIN_VERSION} REQUIRED)
|
||||||
|
find_package(Qt5WebEngineWidgets ${QT_MIN_VERSION} REQUIRED)
|
||||||
if (BUILD_TESTING)
|
if (BUILD_TESTING)
|
||||||
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test)
|
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user