1 2 3 4 5 6 7 8 9 10 11 12 13
@if "%RequireGUI%" == "true" QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets @else QT -= gui CONFIG += console CONFIG -= app_bundle @endif TEMPLATE = app TARGET = %ProjectName% SOURCES += main.%CppSourceSuffix%