TEMPLATE = subdirs SUBDIRS += core tests core.subdir = core tests.subdir = tests tests.depends = core contains(CONFIG, dbc_qt) { SUBDIRS += qt model_tests qt.subdir = qt qt.depends = core model_tests.file = tests/model_tests.pro model_tests.depends = qt }