automoc: add test for including the moc file from another header

including moc_xyz.cpp in abc.cpp should run moc on xyz.h (and
include the file in abc.cpp)

Alex
This commit is contained in:
Alex Neundorf
2011-11-22 19:19:31 +01:00
parent 80dfbc99f4
commit 30fd8e603a
5 changed files with 65 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2004-2011 Kitware, Inc.
Copyright 2011 Alexander Neundorf (neundorf@kde.org)
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "xyz.h"
#include <stdio.h>
Xyz::Xyz()
:QObject()
{
}
void Xyz::doXyz()
{
printf("This is xyz !\n");
}