Make the qt5_use_modules public API.
authorStephen Kelly <stephen.kelly@kdab.com>
Sat, 5 May 2012 21:40:19 +0000 (23:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 May 2012 21:15:56 +0000 (23:15 +0200)
commitc2f8fe64f1273ed25a8e5834f86dc19b79805855
treecc885f61da329b384d1b79a62174db8f8f68be1d
parent78b9de746c9328cb56339d36598a67977360be2b
Make the qt5_use_modules public API.

This cmake function handles all of the necessary logic for using the
include directories of Qt modules, linking to Qt modules, adding
the required definitions, and most importantly, adding the position
independent flags required on UNIX systems to use Qt by default.

The function relies on functionality available in CMake 2.8.8, so it
is only available if that version of CMake or greater is used.

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