summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/testcase_targets.prf
blob: 16ec6a9f0d40a8d6ad86dbe82f2af4501c642172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# Let every project have a standard GNU `check' target
!contains(QMAKE_EXTRA_TARGETS, check) {
    contains(TEMPLATE, subdirs): \
        prepareRecursiveTarget(check)
    else: \
        check.depends = first # `make check' implies build
    QMAKE_EXTRA_TARGETS += check
}

# ... and the same for benchmarks, too.
!contains(QMAKE_EXTRA_TARGETS, benchmark) {
    contains(TEMPLATE, subdirs): \
        prepareRecursiveTarget(benchmark)
    else: \
        benchmark.depends = first # `make benchmark' implies build
    QMAKE_EXTRA_TARGETS += benchmark
}