diff options
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | qbs.pro | 28 |
2 files changed, 30 insertions, 2 deletions
@@ -8,13 +8,13 @@ The main documentation is available as qdoc files in the doc subdirectory. For building qbs you need: - a C++ compiler - - Qt >= 4.7 + - Qt >= 4.8 2. Building qbs =============== - - qmake -r + - qmake -r qbs.pro - make - make docs @@ -1,3 +1,31 @@ +defineTest(minQtVersion) { + maj = $$1 + min = $$2 + patch = $$3 + isEqual(QT_MAJOR_VERSION, $$maj) { + isEqual(QT_MINOR_VERSION, $$min) { + isEqual(QT_PATCH_VERSION, $$patch) { + return(true) + } + greaterThan(QT_PATCH_VERSION, $$patch) { + return(true) + } + } + greaterThan(QT_MINOR_VERSION, $$min) { + return(true) + } + } + greaterThan(QT_MAJOR_VERSION, $$maj) { + return(true) + } + return(false) +} + +!minQtVersion(4, 8, 0) { + message("Cannot build Qt Creator with Qt version $${QT_VERSION}.") + error("Use at least Qt 4.8.0.") +} + TEMPLATE = subdirs CONFIG += ordered lib.file = src/lib/lib.pro |