Find Qt5 modules automatically in the qt5_use_modules function.
authorStephen Kelly <stephen.kelly@kdab.com>
Sun, 13 May 2012 17:52:13 +0000 (19:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 May 2012 02:35:01 +0000 (04:35 +0200)
commitc18a41197f5df3d66dccf86c176e5dd6fd01b163
treed45229cd4a56deea7020c1d79797450ef7d71aa6
parentdd38ad600ff85f40dd33499f24c5b88541e2acf2
Find Qt5 modules automatically in the qt5_use_modules function.

This ensures that we only find Qt5 modules from the same directory
as modules we have already found, not from multiple different
directories which may be incompatible.

Change-Id: I7ad1d81ec41bba2e543130740041338ba44a6c3b
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/Qt5CoreMacros.cmake
tests/auto/cmake/pass1/CMakeLists.txt