X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=26f967fdf4aa88e0db7a8f97b197134cce8dfe8c;hp=47a672e7c2b3048ffac5655ecbf6cf22a44c2e94;hb=e095b7d97b0e794083801878d7c15b3a43dc38b0;hpb=1c8c7ffcfad6f37d2810c4130a23c95ca7ba2a46 diff --git a/CMakeLists.txt b/CMakeLists.txt index 47a672e7..26f967fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,16 +187,31 @@ if(USE_QT5) DESCRIPTION "a multimedia abstraction library" PURPOSE "Required for audio notifications" ) + + find_package(LibsnoreQt5 QUIET) + set_package_properties(LibsnoreQt5 PROPERTIES TYPE OPTIONAL + URL "https://github.com/TheOneRing/Snorenotify" + DESCRIPTION "a cross-platform notification framework" + PURPOSE "Enable support for the snorenotify framework" + ) if (WITH_WEBKIT) - find_package(Qt5Webkit QUIET) - set_package_properties(Qt5Webkit PROPERTIES TYPE RECOMMENDED + find_package(Qt5WebKit QUIET) + set_package_properties(Qt5WebKit PROPERTIES TYPE RECOMMENDED URL "http://qt.digia.com" - DESCRIPTION "a Webkit implementation for Qt" + DESCRIPTION "a WebKit implementation for Qt" PURPOSE "Needed for displaying previews for URLs in chat" ) + if (Qt5WebKit_FOUND) + find_package(Qt5WebKitWidgets QUIET) + set_package_properties(Qt5WebKitWidgets PROPERTIES TYPE RECOMMENDED + URL "http://qt.digia.com" + DESCRIPTION "widgets for Qt's WebKit implementation" + PURPOSE "Needed for displaying previews for URLs in chat" + ) + endif() endif() - add_feature_info("WITH_WEBKIT and QtWebkit module" Qt5Webkit_FOUND "Support showing previews for URLs in chat") + add_feature_info("WITH_WEBKIT, QtWebKit and QtWebKitWidgets modules" Qt5WebKitWidgets_FOUND "Support showing previews for URLs in chat") endif(BUILD_GUI) if (BUILD_CORE) @@ -254,7 +269,7 @@ else(USE_QT5) if (WITH_WEBKIT AND QT_QTWEBKIT_FOUND) set(HAVE_WEBKIT true) endif() - add_feature_info("WITH_WEBKIT and QtWebkit module" HAVE_WEBKIT "Support showing previews for URLs in chat") + add_feature_info("WITH_WEBKIT and QtWebKit module" HAVE_WEBKIT "Support showing previews for URLs in chat") if (WITH_KDE) # KDE has overzealous CFLAGS making miniz not compile, so save our old flags