From: Pino Toscano Date: Thu, 20 Aug 2020 13:42:41 +0000 (+0100) Subject: Make QtWebEngine an optional requirement X-Git-Tag: archive/raspbian/4%20.08.3-1+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=62041dac701bc373f4e2fc5dbf5fff3c5ca82d09;p=kaccounts-providers.git Make QtWebEngine an optional requirement Forwarded: no Last-Update: 2020-08-14 This makes it possible to build kaccount-provides, albeith without the nextcloud plugin, also on architectures that do not have QtWebEngine. Gbp-Pq: Name optional-qtwebengine.diff --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c59f7d..b0c4c95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_P find_package(Intltool REQUIRED) find_package(KAccounts REQUIRED) -find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml WebEngineWidgets) +find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml) +find_package(Qt5WebEngineWidgets ${QT_REQUIRED_VERSION} CONFIG) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED KIO I18n Declarative Package) include(KDEInstallDirs) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 3ea1817..b9a12a5 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,2 +1,4 @@ add_subdirectory(owncloud-ui) -add_subdirectory(nextcloud-ui) \ No newline at end of file +if (Qt5WebEngineWidgets_FOUND) + add_subdirectory(nextcloud-ui) +endif()