- add_feature_info("WITH_WEBKIT and QtWebkit module" Qt5Webkit_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"
- )
- # Qt5 does 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)
- endif()
- # Compatibility with the Qt4 variables
- set (QT_LRELEASE_EXECUTABLE ${Qt5_LRELEASE_EXECUTABLE})
- set (QT_LUPDATE_EXECUTABLE ${Qt5_LUPDATE_EXECUTABLE})