diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-27 18:20:27 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-27 18:20:27 (GMT) |
commit | ef3c6f31fde39f7a68c4eab68e57815b2190b6da (patch) | |
tree | 8b67b908744851141ff2261be97059af98db77ea /Modules | |
parent | b6f2d8e069952bf51e5f392e88873ba15e11f765 (diff) | |
download | CMake-ef3c6f31fde39f7a68c4eab68e57815b2190b6da.zip CMake-ef3c6f31fde39f7a68c4eab68e57815b2190b6da.tar.gz CMake-ef3c6f31fde39f7a68c4eab68e57815b2190b6da.tar.bz2 |
ENH: set QT_EDITION_DESKTOPLIGHT and do not disable modules
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindQt4.cmake | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 4f442a9..110de2e 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -61,6 +61,7 @@ # QT4_FOUND If false, don't try to use Qt 4. # # QT_EDITION Set to the edition of Qt (i.e. DesktopLight) +# QT_EDITION_DESKTOPLIGHT True if QT_EDITION == DesktopLight # QT_QTCORE_FOUND True if QtCore was found. # QT_QTGUI_FOUND True if QtGui was found. # QT_QT3SUPPORT_FOUND True if Qt3Support was found. @@ -1091,21 +1092,11 @@ IF (QT4_QMAKE_FOUND) STRING(REGEX MATCH "CONFIG[^\n]+" QT_CONFIG ${_qconfig_FILE_contents}) STRING(REGEX MATCH "EDITION[^\n]+" QT_EDITION ${_qconfig_FILE_contents}) ENDIF(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri") + IF("${QT_EDITION}" MATCHES "DesktopLight") + SET(QT_EDITION_DESKTOPLIGHT 1) + ENDIF("${QT_EDITION}" MATCHES "DesktopLight") - # desktop light only supports CORE and GUI so disable other - # packages even if they are found as they will not work - MACRO(QT_DISABLE_UNLICENSED_MODULES modules) - IF("${QT_EDITION}" MATCHES "DesktopLight") - FOREACH( _module ${modules}) - SET(QT_${_module}_FOUND FALSE) - ENDFOREACH(_module) - ENDIF("${QT_EDITION}" MATCHES "DesktopLight") - ENDMACRO(QT_DISABLE_UNLICENSED_MODULES) - QT_DISABLE_UNLICENSED_MODULES( - "QTNETWORK;QTXML;QTSQL;QTOPENGL;QTSVG") - - ############################################### # # configuration/system dependent settings |