[Qgis-developer] CMake question

Martin Dobias wonder.sk at gmail.com
Sun Jan 14 10:17:50 EST 2007


I don't know how is it in your CMake installation, but in mine (2.4.3)
there is a line (in FindQt4.cmake) like this:
FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake-qt4 qmake PATHS ....)

that means that it first searches for 'qmake-qt4' and if that's not
found it will check for 'qmake' - so both options should work. IIRC in
recent version there were some improvements for qt4 search so maybe it
has changed.

Martin

On 1/14/07, Marco Hugentobler <marco.hugentobler at karto.baug.ethz.ch> wrote:
> Hi Martin,
>
> Thanks for the hint with the .cmake file.
> Setting QT_QMAKE_EXECUTABLE works for me, but only when I generate a symlink
> called qmake-qt4 pointint to qmake. It seems as cmake is looking for this
> file (which does not exist when building qt from source).
>
> Marco
>
> Am Sonntag, 14. Januar 2007 12:37 schrieben Sie:
> > Hi Marco,
> >
> > this should be possible by specifying QT_QMAKE_EXECUTABLE - by
> > specifying the executable you should be able to change to the other
> > Qt4 installation - CMake gathers all information from it. To
> > understand how does it work, see
> > /usr/share/CMake/Modules/FindQt4.cmake
> >
> > Martin
> >
> > On 1/14/07, Marco Hugentobler <marco.hugentobler at karto.baug.ethz.ch> wrote:
> > > Hi devs,
> > >
> > > I really like the cmake build system. As it is quite new for me, I have a
> > > simple question about it:
> > > Is it possible to change the qt location with a single -D? It seems
> > > possible to
> > > use -DQT_INCLUDE_DIR -DQT_LIBRARY_DIR -DQT_QTCORE_INCLUDE_DIR
> > > -DQT_QTCORE_INCLUDE_DIR and so on also for xml, qt3support, network and
> > > possible more. But it would be handy to have only a single variable
> > > pointing to the whole qt location (like --with-qtdir in autotools). Is
> > > there such a variable?
> > >
> > > thanks,
> > > Marco
> > > _______________________________________________
> > > Qgis-developer mailing list
> > > Qgis-developer at lists.qgis.org
> > > http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>



More information about the Qgis-developer mailing list