X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=75c4d577e6c34e5dd4cd9bb70497e4ce9f63473c;hp=681cceb79e2aae5040f8d5d6e09281edd92af2e0;hb=138e6d461c259df8052497d7228391ce6548bd5f;hpb=6d191d78dfafd07daeb3b39e140677c10a1e4a6a diff --git a/CMakeLists.txt b/CMakeLists.txt index 681cceb7..75c4d577 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,10 @@ if (NOT WITH_KDE) endif() # For this, the feature info is added after we know if QtWebkit is installed -option(WITH_WEBKIT "WebKit support (for link previews)" ON) +option(WITH_WEBKIT "WebKit support (for link previews) (legacy)" ON) + +# For this, the feature info is added after we know if QtWebEngine is installed +option(WITH_WEBENGINE "WebEngine support (for link previews)" ON) if (APPLE) # Notification Center is only available in > 10.8, which is Darwin v12 @@ -267,7 +270,29 @@ if (USE_QT5) if (WITH_WEBKIT AND Qt5WebKitWidgets_FOUND) set(HAVE_WEBKIT true) endif() - add_feature_info("WITH_WEBKIT, QtWebKit and QtWebKitWidgets modules" HAVE_WEBKIT "Support showing previews for URLs in chat") + add_feature_info("WITH_WEBKIT, QtWebKit and QtWebKitWidgets modules" HAVE_WEBKIT "Support showing previews for URLs in chat (legacy)") + + if (WITH_WEBENGINE) + find_package(Qt5WebEngine QUIET) + set_package_properties(Qt5WebEngine PROPERTIES TYPE RECOMMENDED + URL "http://qt.digia.com" + DESCRIPTION "a WebEngine implementation for Qt" + PURPOSE "Needed for displaying previews for URLs in chat" + ) + if (Qt5WebEngine_FOUND) + find_package(Qt5WebEngineWidgets QUIET) + set_package_properties(Qt5WebEngineWidgets PROPERTIES TYPE RECOMMENDED + URL "http://qt.digia.com" + DESCRIPTION "widgets for Qt's WebEngine implementation" + PURPOSE "Needed for displaying previews for URLs in chat" + ) + endif() + endif() + + if (WITH_WEBENGINE AND Qt5WebEngineWidgets_FOUND) + set(HAVE_WEBENGINE true) + endif() + add_feature_info("WITH_WEBENGINE, QtWebEngine and QtWebEngineWidgets modules" HAVE_WEBENGINE "Support showing previews for URLs in chat") # KDE Frameworks ################