make sure that building tests implies building other parts

some tests have runtime deps on the other parts

Change-Id: Ieb2925e762e94b3c0b16884be0f59e10ce8e4878
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
bb10
Oswald Buddenhagen 2012-07-10 08:59:40 +02:00 committed by Qt by Nokia
parent b9bb115972
commit 9d1f44b9ce
1 changed files with 9 additions and 2 deletions

View File

@ -34,9 +34,16 @@ exists($$_PRO_FILE_PWD_/demos/demos.pro) {
exists($$_PRO_FILE_PWD_/tests/tests.pro) {
sub_tests.subdir = tests
sub_tests.target = sub-tests
sub_tests.depends = sub_src # The tests may have a run-time only dependency on tools
sub_tests.depends = sub_src # The tests may have a run-time only dependency on other parts
sub_tests.CONFIG = no_default_install
!contains(QT_BUILD_PARTS, tests): sub_tests.CONFIG += no_default_target
!contains(QT_BUILD_PARTS, tests) {
sub_tests.CONFIG += no_default_target
} else {
# Make sure these are there in case we need them
sub_tools.CONFIG -= no_default_target
sub_examples.CONFIG -= no_default_target
sub_demos.CONFIG -= no_default_target
}
SUBDIRS += sub_tests
}