qeditor: add workaround for c++11 in qt4, suggest to use qt5

Change-Id: Iad7b8fd171d57228796a68cb3406914213b91926
This commit is contained in:
Amaury Pouly 2017-08-30 13:34:00 +02:00
parent 1d58667c1f
commit e6de6c107e

View file

@ -7,7 +7,16 @@ SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp \
LIBS += -L../lib/ -lsocdesc -lxml2
INCLUDEPATH += ../include/ ../../hwstub/include
DEPENDPATH += ../
CONFIG += c++11
greaterThan(QT_MAJOR_VERSION, 4) {
# qt5 knows c++11
CONFIG += c++11
}
else {
message("Qt4 is deprecated, you should use Qt5")
# qt4 does not, use gcc specific code
QMAKE_CXXFLAGS += -std=c++11
}
libsocdesc.commands = cd ../lib && make
QMAKE_EXTRA_TARGETS += libsocdesc