Moc/uic etc without KDE cmake dependency
Craig Bradney
cbradney at zip.com.au
Thu Mar 30 22:17:18 CEST 2006
On Thursday 30 March 2006 21:57, Alexander Neundorf wrote:
> 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.
>
Ok.. FindQt3.cmake also finds all my Qt3 libs etc correctly but doesnt find
moc and uic correctly, ie its accepting the path before QTDIR for the bin
files as I have Qt4 installed and moc and uic are in /usr/bin and Qt3's are
in /usr/qt/3/bin.
Craig
More information about the Kde-buildsystem
mailing list