From 45431ee2cf2daafe350ce54d3a3bc9f4a683e8b8 Mon Sep 17 00:00:00 2001
From: Rohan McGovern <rohan.mcgovern@nokia.com>
Date: Thu, 12 May 2011 08:52:57 +1000
Subject: [PATCH] tests: build autotests by default for qttools

Configure Qt with `-nomake tests' if you don't want the tests.

Reviewed-by: Jason McDonald
Change-Id: I505b7e0d2e3b182f735a7cc06bae538dbb287e9a
---
 qttools.pro | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qttools.pro b/qttools.pro
index 871d8cc99..2e678ed83 100644
--- a/qttools.pro
+++ b/qttools.pro
@@ -6,7 +6,8 @@ module_qttools_src.target = module-qttools-src
 module_qttools_tests.subdir = tests
 module_qttools_tests.target = module-qttools-tests
 module_qttools_tests.depends = module_qttools_src
-module_qttools_tests.CONFIG = no_default_target no_default_install
+module_qttools_tests.CONFIG = no_default_install
+!contains(QT_BUILD_PARTS,tests):module_qttools_tests.CONFIG += no_default_target
 
 SUBDIRS += module_qttools_src \
            module_qttools_tests \
-- 
GitLab