summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkspecs/features/default_post.prf9
-rw-r--r--mkspecs/features/qt_build_config.prf1
-rw-r--r--mkspecs/features/testcase_targets.prf9
3 files changed, 10 insertions, 9 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
index 6f3f318e0a..5359953d90 100644
--- a/mkspecs/features/default_post.prf
+++ b/mkspecs/features/default_post.prf
@@ -47,12 +47,3 @@ breakpad {
QMAKE_INCDIR += $$QMAKE_INCDIR_POST
QMAKE_LIBDIR += $$QMAKE_LIBDIR_POST
-
-# 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
-}
diff --git a/mkspecs/features/qt_build_config.prf b/mkspecs/features/qt_build_config.prf
index 63d6b43c7c..e9d5367ee1 100644
--- a/mkspecs/features/qt_build_config.prf
+++ b/mkspecs/features/qt_build_config.prf
@@ -27,6 +27,7 @@ mac {
CONFIG += \
create_prl link_prl \
+ testcase_targets \
prepare_docs qt_docs_targets \
qt_example_installs \
no_private_qt_headers_warning QTDIR_build \
diff --git a/mkspecs/features/testcase_targets.prf b/mkspecs/features/testcase_targets.prf
new file mode 100644
index 0000000000..e9b107735a
--- /dev/null
+++ b/mkspecs/features/testcase_targets.prf
@@ -0,0 +1,9 @@
+
+# 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
+}