-else(USE_QT5)
- find_package(Qt4 ${QT_MIN_VERSION} QUIET REQUIRED)
-
- if (BUILD_GUI)
- add_feature_info("QtDBus module" QT_QTDBUS_FOUND "Needed for supporting D-Bus-based notifications and tray icon, used by most modern desktop environments")
- if (QT_QTDBUS_FOUND)
- find_package(dbusmenu-qt QUIET CONFIG)
- set_package_properties(dbusmenu-qt PROPERTIES TYPE RECOMMENDED
- URL "https://launchpad.net/libdbusmenu-qt"
- DESCRIPTION "a library implementing the DBusMenu specification"
- PURPOSE "Required for having a context menu for the D-Bus-based tray icon"
- )
- endif()
-
- 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")
-
- if (WITH_KDE)
- # KDE has overzealous CFLAGS making miniz not compile, so save our old flags
- set(_cflags ${CMAKE_C_FLAGS})
- find_package(KDE4 4.4 QUIET)
- set_package_properties(KDE4 PROPERTIES TYPE REQUIRED
- URL "http://www.kde.org"
- DESCRIPTION "a world-class desktop environment"
- PURPOSE "Enables various bits for improving integration with KDE"
- )
- set(CMAKE_C_FLAGS ${_cflags})
-
- else(WITH_KDE)
- find_package(Phonon QUIET)
- set_package_properties(Phonon PROPERTIES TYPE RECOMMENDED
- URL "https://projects.kde.org/projects/kdesupport/phonon"
- DESCRIPTION "a multimedia abstraction library"
- PURPOSE "Required for audio notifications"
- )
- endif(WITH_KDE)
-
- find_package(IndicateQt QUIET)
- set_package_properties(IndicateQt PROPERTIES TYPE OPTIONAL
- URL "https://launchpad.net/libindicate-qt/"
- DESCRIPTION "a library to raise flags on DBus for other components of the desktop to pick up and visualize"
- PURPOSE "Provides integration into the Ayatana notification system used by e.g. Ubuntu"
- )
-
- endif(BUILD_GUI)
-
- if (BUILD_CORE)
+if (BUILD_CORE)
+ find_package(Qca-qt5 2.0 QUIET)
+ set_package_properties(Qca-qt5 PROPERTIES TYPE RECOMMENDED
+ URL "https://projects.kde.org/projects/kdesupport/qca"
+ DESCRIPTION "Qt Cryptographic Architecture"
+ PURPOSE "Required for encryption support"
+ )