Skip to content
Permalink
Browse files

Make sure the user has Qt 4.4 or better, check whether all necessary …

…Qt modules are present.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12991 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Mar 2, 2010
1 parent f35dfab commit d63121bbcf15398fa33c5a298320623a595115af
Showing with 5 additions and 6 deletions.
  1. +5 −6 CMakeLists.txt
@@ -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()

0 comments on commit d63121b

Please sign in to comment.
You can’t perform that action at this time.