summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_test_helper.prf
blob: 86b65dd8849e0e41051b9a4a0e7c7ba408b867fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
#  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