Moc/uic etc without KDE cmake dependency

Alexander Neundorf neundorf at kde.org
Thu Mar 30 21:57:56 CEST 2006


On Thursday 30 March 2006 21:52, Craig Bradney wrote:
> On Thursday 30 March 2006 20:35, Craig Bradney wrote:
> > On Wednesday 29 March 2006 21:24, Alexander Neundorf wrote:
> > > On Wednesday 29 March 2006 02:09, Craig Bradney wrote:
> > > > Hi,
> > > >
> > > > I'm attempting to convert Scribus to use cmake, as we want to escape
> > > > autohell too :) so.. I'm making progress but am stuck for examples on
> > > > some basics. Its been suggested I would find the most information on
> > > > this list.
> > > >
> > > > The first one is how to moc a source file without using the
> > > > kde3_automoc macro (which in turn depends on a dependency macro in
> > > > kde3 cmake files). I have the cmake tarball build from the 17th IIRC
> > > > (only link I had from the KDE cmake pages anyway).
> > > >
> > > > Is there a general pure Qt (v3) solution out there? I've found a lot
> > > > of
> > >
> > > Yes.
> > > Just use the QT_WRAP_CPP() and QT_WRAP_UI() commands coming with
> > > standard cmake.
> > > Their interface is a bit different from the ones used for Qt4, but you
> > > should be able to figure it out :-)
> > >
> > > Bye
> > > Alex
> > >
> > > P.S. I'll write a short howto compile kde3/4/qt4 software using cmake
> > > ASAP
> >
> > Hi Alex,
> >
> > Thanks for the tips.. I'm getting there.. Having some more basic examples
> > out there would be very interesting to read though.
>
> Ok.. copy and paste magic.. ie, replace same with same and now moc'ing
> works magically.
>
> Is there a way to control the name of the moc file? That is, I'm getting
> moc_about.cxx and we are using about.moc. 

For Qt3 ? AFAIK currently not really.
But if you want to, you could take the QT4_AUTOMOC and adapt it accordingly 
and insert it into FindQt3.cmake.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list