From dc258c5fa8bdf3a255ed22719d2d82a70c9b5a1c Mon Sep 17 00:00:00 2001 From: tianduanrui <2407223896@qq.com> Date: Wed, 6 Dec 2017 17:01:45 +0800 Subject: [PATCH] update: add build condition tips --- src/qqt.pro | 11 +++++++++-- src/qqt_source.pri | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/qqt.pro b/src/qqt.pro index 57d4443a..d824accd 100644 --- a/src/qqt.pro +++ b/src/qqt.pro @@ -20,15 +20,22 @@ TARGET = QQt TEMPLATE = lib +lessThan(QT_VERSION, 4.8.6) { + message(A. ensure your compiler support c++11 feature) + message(B. ensure Qt version > 4.8.5) + error( error occured!) +} + ################################################ ##project config definition ##need QKIT to compitible with some occasion ################################################ include ($$PWD/qqt_qkit.pri) + isEmpty(QKIT_PRIVATE) { - message(env variable QKIT is required!) - message(pleace check qqt_qkit.pri) + message(1. you should change qt default build directory to your-pc-build-station/%{CurrentProject:Name}/%{Qt:Version}/%{CurrentKit:FileSystemName}/%{CurrentBuild:Name}) + message(2. env variable QKIT is required! pleace check qqt_qkit.pri) error( error occured!) } diff --git a/src/qqt_source.pri b/src/qqt_source.pri index 372ea1b4..4323c90f 100644 --- a/src/qqt_source.pri +++ b/src/qqt_source.pri @@ -12,8 +12,8 @@ #if you succeed with LibQQt, please thumb up. #2017年11月10日18:53:56 #------------------------------------------------- -SOURCES += -HEADERS += +SOURCES = +HEADERS = #root dir HEADERS += $$PWD/qqt.h \