Add a CMake macro to test module includes
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 19 Oct 2012 14:59:53 +0000 (16:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 26 Oct 2012 13:23:30 +0000 (15:23 +0200)
commit49555e3ac956d9f90b01d136c510206cf50d0a8b
treedd4d68e953cc3d91bad95be05930b9d0e096d525
parent356f3c89b83704591e3c37cf8c322b52d6840763
Add a CMake macro to test module includes

The variations of includes which should work are tested. For example,
in the case of testing the QtCore module and QObject include, the
following includes are generated and compiled:

      #include <QObject>
      #include <QtCore/QObject>
      #include <QtCore>
      #include <QtCore/QtCore>

As the private include directories are not available to the compiler,
this also tests that private headers are not included from public ones.

Change-Id: Id03d0fe290c9691e0f7515015892991d1701ab72
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/Qt5CTestMacros.cmake
tests/auto/cmake/CMakeLists.txt