Report human-readable error if Qt5Widgets is required but is not found
Summary:
If I have
find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED)
in CMakeLists.txt, cmake failed with the following error:
get_target_property() called with non-existent target "Qt5::uic".
referencing the following line in KF5I18nMacros.cmake:
get_target_property(QT_UIC_EXECUTABLE Qt5::uic LOCATION)
Test Plan:
Run cmake on a project with the following lines:
find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED) ki18n_wrap_ui(foo_SRCS bar.ui)
Reviewers: Frameworks, apol
Reviewed By: apol
Subscribers: apol, cgiboudeaux, aacid, kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D20005