summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/abc.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/abc.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/abc.cpp')
-rw-r--r--Tests/QtAutomoc/abc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/abc.cpp b/Tests/QtAutomoc/abc.cpp
index f922615..25071cd 100644
--- a/Tests/QtAutomoc/abc.cpp
+++ b/Tests/QtAutomoc/abc.cpp
@@ -37,5 +37,9 @@ void Abc::doAbc()
pa.print();
}
+// check that including the moc file for the cpp file and the header works:
#include "abc.moc"
#include "moc_abc.cpp"
+
+// check that including a moc file from another header works:
+#include "moc_xyz.cpp"