diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-11-22 19:19:31 +0100 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-11-22 20:52:13 +0100 |
commit | 30fd8e603a52b7230e0b716d8120fc01551c8a4f (patch) | |
tree | bc3c086f06a50c90a9d2a43826ee5cbce4222e8d /Tests/QtAutomoc/xyz.cpp | |
parent | 80dfbc99f4b04b5eaea9111fa014f07603a8db16 (diff) | |
download | cmake-30fd8e603a52b7230e0b716d8120fc01551c8a4f.tar.gz |
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/xyz.cpp')
-rw-r--r-- | Tests/QtAutomoc/xyz.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/xyz.cpp b/Tests/QtAutomoc/xyz.cpp new file mode 100644 index 0000000000..a3562a3371 --- /dev/null +++ b/Tests/QtAutomoc/xyz.cpp @@ -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"); +} |