Add Qt6 support

This commit is contained in:
Simon Stürz 2024-01-19 11:38:25 +01:00
parent 1c3fb3df84
commit 25d1810c8a

View File

@ -1,6 +1,17 @@
greaterThan(QT_MAJOR_VERSION, 5) {
message("Building using Qt6 support")
CONFIG *= c++17
QMAKE_LFLAGS *= -std=c++17
QMAKE_CXXFLAGS *= -std=c++17
} else {
message("Building using Qt5 support")
CONFIG *= c++11
QMAKE_LFLAGS *= -std=c++11
QMAKE_CXXFLAGS *= -std=c++11
DEFINES += QT_DISABLE_DEPRECATED_UP_TO=0x050F00
}
QMAKE_CXXFLAGS += -Werror -std=c++11 -g
QMAKE_LFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Werror -g
gcc {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")