[cmake-developers] cmake automoc breaks kde

Stephen Kelly steveire at gmail.com
Wed Nov 2 18:44:53 EDT 2011


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.



More information about the cmake-developers mailing list