tests: build autotests by default for qttools
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 11 May 2011 22:52:57 +0000 (08:52 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Thu, 12 May 2011 02:41:52 +0000 (12:41 +1000)
Configure Qt with `-nomake tests' if you don't want the tests.

Reviewed-by: Jason McDonald
Change-Id: I505b7e0d2e3b182f735a7cc06bae538dbb287e9a

qttools.pro

index 871d8cc..2e678ed 100644 (file)
@@ -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 \