[CMake] Suggestions for FindQt4: finding qmake and headers
for .moc
William A. Hoffman
billlist at nycap.rr.com
Wed Oct 4 09:02:49 EDT 2006
At 02:51 AM 10/4/2006, Michael G. Hansen wrote:
>Hi,
>
>I have two suggestions for FindQt4.cmake:
>
>1. FindQt4 looks for qmake before qmake-qt4. I think the other way
>around would be better, because FindQt4 fails if it finds qmake and then
>finds out that it is from QT3, without looking at the possibility of
>using qmake-qt4. So
>FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake-qt4 PATHS ...
>should be changed to
>FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake-qt4 qmake PATHS ...
I have just checked in a fix for this. It now looks for qmake,
and checks to see if the qmake is the right version, if it is from
qt3, then it will look for qmake-qt4.
>2. When looking for a header file to generate a .moc from, the extension
>.h is assumed. Instead, we should test for existing .h, .hxx and .hpp:
I think Alex is working on a better automoc, so I am not sure about changing
this right now.
-Bill
More information about the CMake
mailing list