On Friday 31 August 2007 16:10, Jack Kelly wrote: > Matthew Smith wrote: > > I'd like to ask if there is a CMake variable for the version of Qt that > > is present in a project? I've looked in my cache file and have never > > found one, even though the version number is displayed at configure > > stage when compiling the project. > > Hi Matthew, > > FindQt.cmake in the default installation (for me, anyway. CMake 2.4.7) > will set QT4_INSTALLED to TRUE if Qt4 is found and similarly for > QT3_INSTALLED, but they aren't cache variables.
In FindQt4.cmake there is also a QTVERSION variable, but this is actually internal only, so it's not guaranteed that it will be always there. A way to find out about existing variables is the GET_CMAKE_PROPERTY() command. Alex _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
