Re: cmake: make Qt4 qmake available via PATH

2006-03-23 Thread Michael Olbrich
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

Re: cmake: make Qt4 qmake available via PATH

2006-03-23 Thread Thiago Macieira
Michael Olbrich wrote: 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

Re: cmake: make Qt4 qmake available via PATH

2006-03-22 Thread Michael Olbrich
On Tue, Mar 21, 2006 at 11:19:57PM +0100, Alexander Neundorf wrote: Hi, after the discussions today on the KDE and the cmake mailing lists, it seems that Qt4 obsoletes the use of QTDIR and instead requires that qmake is available via PATH. So I changed the detection of Qt4 accordingly

Re: cmake: make Qt4 qmake available via PATH

2006-03-22 Thread Thiago Macieira
Michael Olbrich wrote: On Tue, Mar 21, 2006 at 11:19:57PM +0100, Alexander Neundorf wrote: Hi, after the discussions today on the KDE and the cmake mailing lists, it seems that Qt4 obsoletes the use of QTDIR and instead requires that qmake is available via PATH. So I changed the detection

Re: cmake: make Qt4 qmake available via PATH

2006-03-22 Thread Thiago Macieira
Alexander Neundorf 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* Is it somewhere documented what can be queried ? I didn't find it yet. No, there are no

Re: cmake: make Qt4 qmake available via PATH

2006-03-22 Thread Michael Olbrich
On Wed, Mar 22, 2006 at 06:22:38PM +0100, Alexander Neundorf wrote: On Wednesday 22 March 2006 14:53, Thiago Macieira wrote: Michael Olbrich wrote: Hmm, that will give me: QT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 QT_BINARY_DIR=/usr/bin QT_UIC_EXECUTABLE=/usr/bin/uic which is the qt3

cmake: make Qt4 qmake available via PATH

2006-03-21 Thread Alexander Neundorf
Hi, after the discussions today on the KDE and the cmake mailing lists, it seems that Qt4 obsoletes the use of QTDIR and instead requires that qmake is available via PATH. So I changed the detection of Qt4 accordingly in FindQt4.cmake. This means: to detect Qt4, use something like export