[CMake] Suggestions for FindQt4: finding qmake and headers for .moc

Alexander Neundorf a.neundorf-work at gmx.net
Wed Oct 4 09:19:17 EDT 2006


-------- Original-Nachricht --------
Datum: Wed, 04 Oct 2006 09:02:49 -0400
Von: "William A. Hoffman" <billlist at nycap.rr.com>
An: "Michael G. Hansen" <mikeml2 at pfna.de>, cmake at cmake.org
Betreff: Re: [CMake] Suggestions for FindQt4: finding qmake and headers	for .moc

> 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.

This sounds really good :-)
 
> >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.   

Yes, I'm working on it.

Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list