diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-11-22 21:01:13 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-11-22 21:01:13 (GMT) |
commit | bde4edb6ab6501de42bdc167e027a9f5c5760244 (patch) | |
tree | 0059ae69093206f7b94db2cdd6bbf0d2a64be54f /Tests/QtAutomoc/yaf.cpp | |
parent | 74ab0f6aa409a9d3e90c91b1b1c7a6e4b865ed62 (diff) | |
download | CMake-bde4edb6ab6501de42bdc167e027a9f5c5760244.zip CMake-bde4edb6ab6501de42bdc167e027a9f5c5760244.tar.gz CMake-bde4edb6ab6501de42bdc167e027a9f5c5760244.tar.bz2 |
automoc: add special handling for including basename_p.moc, with test
Alex
Diffstat (limited to 'Tests/QtAutomoc/yaf.cpp')
-rw-r--r-- | Tests/QtAutomoc/yaf.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/yaf.cpp b/Tests/QtAutomoc/yaf.cpp new file mode 100644 index 0000000..d278ab4 --- /dev/null +++ b/Tests/QtAutomoc/yaf.cpp @@ -0,0 +1,32 @@ +/*============================================================================ + 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 "yaf.h" +#include "yaf_p.h" + +#include <stdio.h> + +Yaf::Yaf() +{ +} + + +void Yaf::doYaf() +{ + YafP yafP; + yafP.doYafP(); +} + +// check that including a moc file from a private header the wrong way works: +#include "yaf_p.moc" |