On 11/02/2011 06:32 PM, David Faure wrote:
>
> #include "foo.moc"
> #include "moc_foo.cpp"
>
> This would have generated twice the same moc file, I think. IMO this is
> really confusing.
Well there is no reason to include both, unless you have Q_OBJECT in the .cpp
file too:-)
I'm sure I've seen this in several places in Qt code. Grepping I found
one in
qt48/src/scripttools/debugging/qscriptenginedebugger.cpp
....
QT_END_NAMESPACE
#include "qscriptenginedebugger.moc"
#include "moc_qscriptenginedebugger.cpp"
From memory, there are others.
Thanks,
Steve.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers