summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/main.cpp
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-10-25 19:34:19 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-10-25 19:34:19 (GMT)
commit61b49402d789f5465a7cdc08e708d4448f3496c3 (patch)
treee9079c08328ee0ca52f8ba2255fcd93363b65d30 /Tests/QtAutomoc/main.cpp
parent5576655f369cf910a3edf25a3e1b9150926ebe43 (diff)
parent5e8e9ad68ca9e617ef5442236247a49e3b246a5d (diff)
downloadCMake-61b49402d789f5465a7cdc08e708d4448f3496c3.zip
CMake-61b49402d789f5465a7cdc08e708d4448f3496c3.tar.gz
CMake-61b49402d789f5465a7cdc08e708d4448f3496c3.tar.bz2
Merge topic 'AutomocFindQ_OBJECTAlwaysInHeader'
5e8e9ad automoc: always run moc on the cpp file if there is a foo.moc included ea8ac9f Add copyright notices 56aa6ff automoc:run moc on the header if the source file contains include "foo.moc"
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 7bf4a5d..b7cfb41 100644
--- a/Tests/QtAutomoc/main.cpp
+++ b/Tests/QtAutomoc/main.cpp
@@ -42,6 +42,7 @@
#include "codeeditor.h"
#include "calwidget.h"
+#include "foo.h"
int main(int argv, char **args)
{
@@ -54,5 +55,8 @@ int main(int argv, char **args)
Window w;
w.show();
+ Foo foo;
+ foo.doFoo();
+
return app.exec();
}