summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/main.cpp
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-22 18:19:31 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-22 19:52:13 (GMT)
commit30fd8e603a52b7230e0b716d8120fc01551c8a4f (patch)
treebc3c086f06a50c90a9d2a43826ee5cbce4222e8d /Tests/QtAutomoc/main.cpp
parent80dfbc99f4b04b5eaea9111fa014f07603a8db16 (diff)
downloadCMake-30fd8e603a52b7230e0b716d8120fc01551c8a4f.zip
CMake-30fd8e603a52b7230e0b716d8120fc01551c8a4f.tar.gz
CMake-30fd8e603a52b7230e0b716d8120fc01551c8a4f.tar.bz2
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
Diffstat (limited to 'Tests/QtAutomoc/main.cpp')
-rw-r--r--Tests/QtAutomoc/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/main.cpp b/Tests/QtAutomoc/main.cpp
index 5414daf..7eb29a3 100644
--- a/Tests/QtAutomoc/main.cpp
+++ b/Tests/QtAutomoc/main.cpp
@@ -46,6 +46,7 @@
#include "blub.h"
#include "sub/bar.h"
#include "abc.h"
+#include "xyz.h"
int main(int argv, char **args)
{
@@ -70,5 +71,8 @@ int main(int argv, char **args)
Abc abc;
abc.doAbc();
+ Xyz xyz;
+ xyz.doXyz();
+
return app.exec();
}