From: Pino Toscano Date: Wed, 10 Feb 2021 03:10:22 +0000 (+0000) Subject: Make QtWebEngine an optional requirement X-Git-Tag: archive/raspbian/4%21.08.0-1+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=010cf01e56c507cec86438762d4629add1d47ae3;p=kaccounts-providers.git Make QtWebEngine an optional requirement Forwarded: no Last-Update: 2021-01-16 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 1c16b4d..0e33cc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,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 WebEngine) +find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Qml) +find_package(Qt5WebEngine ${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..b95291c 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 (Qt5WebEngine_FOUND) + add_subdirectory(nextcloud-ui) +endif()