qt5base-lts/examples/qmake/precompile/precompile.pro
Joerg Bornemann 8fe3680193 Add cmdline feature to qmake
[ChangeLog][qmake] A new feature "cmdline" was added that implies
"CONFIG += console" and "CONFIG -= app_bundle".

Task-number: QTBUG-27079
Change-Id: I6e52b07c9341c904bb1424fc717057432f9360e1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2019-02-18 07:12:14 +00:00

24 lines
490 B
Prolog

#############################################
#
# Example for using Precompiled Headers
#
#############################################
#! [0]
TEMPLATE = app
LANGUAGE = C++
CONFIG += cmdline precompile_header
QT += widgets
# Use Precompiled headers (PCH)
PRECOMPILED_HEADER = stable.h
HEADERS = stable.h \
mydialog.h \
myobject.h
SOURCES = main.cpp \
mydialog.cpp \
myobject.cpp \
util.cpp
FORMS = mydialog.ui
#! [0]