- add_feature_info("WITH_WEBKIT, QtWebKit and QtWebKitWidgets modules" Qt5WebKitWidgets_FOUND "Support showing previews for URLs in chat")
-
- endif(BUILD_GUI)
- if (BUILD_CORE)
- find_package(Qt5Script QUIET)
- set_package_properties(Qt5Script PROPERTIES TYPE REQUIRED
- DESCRIPTION "provides scripting support for Qt5"
- )
- find_package(Qt5Sql QUIET)
- set_package_properties(Qt5Sql PROPERTIES TYPE REQUIRED
- DESCRIPTION "the database support module for Qt5"
- )
-
- # While QCA2 seems to support Qt5, it is not actually co-installable or distinguishable from the Qt4 version...
- # In order to avoid linking against the Qt4 version (which is probably the one installed), disable this for now
- #find_package(QCA2 QUIET)
- #set_package_properties(QCA2 PROPERTIES TYPE RECOMMENDED
- # URL "https://projects.kde.org/projects/kdesupport/qca"
- # DESCRIPTION "Qt Cryptographic Architecture"
- # PURPOSE "Required for encryption support"
- #)
-
- endif(BUILD_CORE)
-
- find_package(Qt5LinguistTools QUIET)
- set_package_properties(Qt5LinguistTools PROPERTIES TYPE RECOMMENDED
- DESCRIPTION "contains tools for handling translation files"
- PURPOSE "Required for having translations"
- )
- # Some Qt5 versions do not define a target for lconvert, so we need to find it ourselves
- if (Qt5LinguistTools_FOUND)
- if (NOT TARGET Qt5::lconvert AND TARGET Qt5::lrelease)
- get_target_property(_lrelease_location Qt5::lrelease LOCATION)
- get_filename_component(_lrelease_path ${_lrelease_location} PATH)
- find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert-qt5 lconvert PATHS ${_lrelease_path} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
- elseif(TARGET Qt5::lconvert AND NOT Qt5_LCONVERT_EXECUTABLE)
- # Newer Qt5 versions define the target, but not the Qt5_LCONVERT_EXECUTABLE variable for some reason
- get_target_property(QT_LCONVERT_EXECUTABLE Qt5::lconvert LOCATION)
- endif()