[CMake] cmake qt4 Lplates

luxInteg lux-integ at btconnect.com
Sat Dec 11 12:22:28 EST 2010


On Friday 10 December 2010 21:17:21 Andreas Pakulat wrote:
> On 10.12.10 22:09:29, luxInteg wrote:
> > Greetings,
> > 
> > I   have my cmake L-plates firmly on ( with a Qt4  project I am stumbling
> > on )
> > 
> > I have these in   CMakeLists.txt file:-
> > 
> >  FIND_PACKAGE( Qt4 REQUIRED )
> >  
> >   INCLUDE( ${QT_USE_FILE} )
> >   set(QT_USE_OPENGL TRUE)
> >   set(QT_USE_QTSVG  TRUE )
> >   SET( QT_USE_QTXML TRUE )
> >   SET( QT_USE_QT3SUPPORT TRUE )
> >   SET( QT_USE_QTNETWORK  TRUE )
> >   SET( QT_USE_QTASSISTANT TRUE )
> >   SET(QT_USE_QTSCRIPT TRUE)
> 
> This is wrong, you should set the use-variables _before_ including
> the use-file. Otherwise the qt-include-dir-variable as well as libraries
> variable won't contain these modules. Thats the whole point of the
> use-module.
> 
thanks for the advice,  I had initially tried a tiny  project without these 
settings.  Yes moving   INCLUDE( ${QT_USE_FILE}   now has ${QT_INCLUDE_DIR} 
recognised.


More information about the CMake mailing list