-
- 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
- ################
-
- if (WITH_KDE)
- set(ecm_find_type "REQUIRED")
- else()
- # Even with KDE integration disabled, we optionally use tier1 frameworks if we find them
- set(ecm_find_type "RECOMMENDED")
- endif()
-
- # extra-cmake-modules
- find_package(ECM NO_MODULE QUIET)
- set_package_properties(ECM PROPERTIES TYPE ${ecm_find_type}
- URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
- DESCRIPTION "extra modules for CMake, maintained by the KDE project"
- PURPOSE "Required to find KDE Frameworks components"
- )
-
- if (ECM_FOUND)
- list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
- if (WITH_KDE)
- find_package(KF5 COMPONENTS ConfigWidgets CoreAddons Notifications NotifyConfig TextWidgets WidgetsAddons XmlGui QUIET)
- set_package_properties(KF5 PROPERTIES TYPE REQUIRED
- URL "http://www.kde.org"
- DESCRIPTION "KDE Frameworks"
- PURPOSE "Required for integration into the Plasma desktop"
- )
- else()
- find_package(KF5Sonnet QUIET)
- set_package_properties(KF5Sonnet PROPERTIES TYPE RECOMMENDED
- URL "http://api.kde.org/frameworks-api/frameworks5-apidocs/sonnet/html"
- DESCRIPTION "framework for providing spell-checking capabilities"
- PURPOSE "Enables spell-checking support in input widgets"
- )
- endif()
- endif()
-