qt5base-lts/mkspecs/features/qt_test_helper.prf
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

35 lines
986 B
Plaintext

#
# W A R N I N G
# -------------
#
# This file is not part of the Qt API. It exists purely as an
# implementation detail. It may change from version to version
# without notice, or even be removed.
#
# We mean it.
#
# If an auto test needs a helper application, this helper should
# be put into the same directory as the test itself. This common
# folder should be the test's "main directory" or a "debug" or "release"
# subfolder inside this main directory if debug_and_release is enabled.
# Additionally the helper's executable is suffixed with "_helper" to
# avoid name clashes with its folder.
CONFIG += cmdline
debug_and_release {
CONFIG(debug, debug|release) {
TARGET = ../../debug/$${TARGET}_helper
} else {
TARGET = ../../release/$${TARGET}_helper
}
} else {
TARGET = ../$${TARGET}_helper
}
parentFolder = $$dirname(_PRO_FILE_PWD_)
testFolder = $$basename(parentFolder)
target.path = $$[QT_INSTALL_TESTS]/$$testFolder
INSTALLS += target