make KDE4_AUTOMOC compatible to qmake

Matthias Kretz kretz at kde.org
Thu Jun 7 12:53:35 CEST 2007


On Thursday 07 June 2007, Christian Ehrlicher wrote:
> Von: Matthias Kretz <kretz at kde.org>
>
> > Hi,
> >
> > I updated the patch so that it now adds a dependency on the moc generated
> > file
> > and does not add the moc files in the add_library/add_executable calls.
> > Works
> > fine with a clean build dir now, too.
>
> Afair we had a similar discussion short after we switched to cmake. There
> is a difference in the moc file handling between qmake and cmake/automake.
> I don't remeber why this was introduced...

I just successfully compiled libphonon using qmake by #including 
moc_<name>.cpp instead of <name>.moc. And since my KDE4Macros.cmake supports 
it, it also still compiles with cmake.

-- 
________________________________________________________
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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070607/e5492ee7/attachment.pgp 


More information about the Kde-buildsystem mailing list