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. _______________________________________________ Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake