Skip to content

Commit

Permalink
Make sure the user has Qt 4.4 or better, check whether all necessary …
Browse files Browse the repository at this point in the history
…Qt modules are present.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12991 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 2, 2010
1 parent f35dfab commit d63121b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Expand Up @@ -170,13 +170,12 @@ ENDIF (SPATIALITE_FOUND)

#############################################################
# search for Qt4
FIND_PACKAGE(Qt4 REQUIRED)
FIND_PACKAGE(Qt4 4.4 COMPONENTS QtCore QtGui QtXml QtNetwork QtSvg QtSql QtWebKit REQUIRED)

IF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND)
MESSAGE(SEND_ERROR "Some Qt4 modules haven't been found!")
ENDIF ()

SET( QT_USE_QTXML TRUE )
SET( QT_USE_QTNETWORK TRUE )
SET( QT_USE_QTSVG TRUE )
SET( QT_USE_QTSQL TRUE )
SET( QT_USE_QTWEBKIT TRUE )
IF (ENABLE_TESTS)
SET( QT_USE_QTTEST TRUE )
ENABLE_TESTING()
Expand Down

0 comments on commit d63121b

Please sign in to comment.