make KDE4_AUTOMOC compatible to qmake

Matthias Kretz kretz at kde.org
Tue Jun 26 14:32:29 CEST 2007


don't have David's mail here for replying to it...

but attached is a patch to create the .moc file from the .cpp file if the .cpp 
file matches ^\s*Q_OBJECT. For moc_foo.cpp files it always creates it from 
the .h file. That way you can include both
#include "moc_foo.cpp"
#include "foo.moc"

and with that include the moc generated code from the .cpp and the .h files. 
(If I understood correctly that's compatible with qmake.)

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kde4automoc.cmake.diff
Type: text/x-diff
Size: 1595 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070626/785a04d6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070626/785a04d6/attachment.pgp 


More information about the Kde-buildsystem mailing list