cmake: make Qt4 qmake available via PATH

Michael Olbrich michael-olbrich at web.de
Thu Mar 23 16:46:21 CET 2006


On Thu, Mar 23, 2006 at 10:33:06AM +0100, Thiago Macieira wrote:
> Michael Olbrich wrote:
> >> > $ ls `qmake -query QT_INSTALL_BINS`/uic
> >> > /home/tjmaciei/troll/qt-4.1-build/bin/uic*
> >> >
> >> > $ ls `pkg-config --variable prefix QtCore`/bin/uic
> >> > /home/tjmaciei/troll/qt-4.1-build/bin/uic*
> >
> >That is not necessarily the same uic qmake would use. Is that
> >intentional?
> 
> It is, unless you change it intentionally.
> 
> $ head mkspecs/features/uic.prf
[...]

What I mean is, it _can_ be changed. Debian has modified
mkspecs/linux-g++/qmake.conf:
QMAKE_MOC               = $$[QT_INSTALL_BINS]/moc-qt4
QMAKE_UIC               = $$[QT_INSTALL_BINS]/uic-qt4

The question is, how can a buildsystem like cmake figure out which
moc/uic qmake would use. That way we can be sure that header/libs/tools
are all from the same qt version.

michael



More information about the Kde-buildsystem mailing list