From a18ee640ea4c0f22259f1d596e376a8f64521e8b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 24 Mar 2013 20:28:47 +0100 Subject: Set the INTERFACE_INCLUDE_DIRECTORIES for all available Qt components. Not only the ones explicitly searched for. --- find-modules/FindQt5Transitional.cmake | 46 +++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'find-modules/FindQt5Transitional.cmake') diff --git a/find-modules/FindQt5Transitional.cmake b/find-modules/FindQt5Transitional.cmake index 55306b48..f94ae40d 100644 --- a/find-modules/FindQt5Transitional.cmake +++ b/find-modules/FindQt5Transitional.cmake @@ -2,29 +2,29 @@ find_package(Qt5Core QUIET) if (Qt5Core_FOUND) + set(_allComponents + Core + Gui + DBus + Designer + Declarative + Script + ScriptTools + Network + Test + Xml + Svg + Sql + Widgets + PrintSupport + Concurrent + UiTools + WebKit + WebKitWidgets + OpenGL + ) if (NOT Qt5Transitional_FIND_COMPONENTS) - set(_components - Core - Gui - DBus - Designer - Declarative - Script - ScriptTools - Network - Test - Xml - Svg - Sql - Widgets - PrintSupport - Concurrent - UiTools - WebKit - WebKitWidgets - OpenGL - ) - foreach(_component ${_components}) + foreach(_component ${_allComponents}) find_package(Qt5${_component}) list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES}) @@ -56,7 +56,7 @@ if (Qt5Core_FOUND) set(QT5_BUILD TRUE) # Temporary until upstream does this: - foreach(_component ${_components}) + foreach(_component ${_allComponents}) if (TARGET Qt5::${_component}) set_property(TARGET Qt5::${_component} APPEND PROPERTY -- cgit v1.2.1