make KDE4_AUTOMOC compatible to qmake

Matthias Kretz kretz at
Fri Jun 8 11:34:49 CEST 2007

On Friday 08 June 2007, Thiago Macieira wrote:
> Alexander Neundorf said:
> > IOW we have to stay with a non-source-file extension.
> Yep:
> *.moc for anything #included (this includes moc_*.moc, if needed)
> moc_*.cpp for anything that isn't #included (but has a Q_OBJECT
> nonetheless)

But KDE4_AUTOMOC will not run the moc unless you include a file ending 
in .moc.
QT4_GENERATE_MOC can be used to explicitly create a moc file from a header 
file, though it also uses OBJECT_DEPENDS (why is it allowed here and not in 

Matthias Kretz (Germany)                            <><
MatthiasKretz at, kretz at,
Matthias.Kretz at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the Kde-buildsystem mailing list