SubProject Item

A SubProject item is used to add a project defined in another file as a sub-project to the surrounding project:

SubProject {
    filePath: "subdir/project.qbs"
    Properties {
        name: "A sub-project"

If you don't need to set any properties on the sub-project, you can also use the references property, the same way you would do for a product:

references: "subdir/project.qbs"

It is also possible to nest Project items directly in the same file.

filePathpathemptyThe file path of the project to add as a sub-project. If the top-level item in this file is a Product, it gets wrapped automatically in a new project.
inheritPropertiesbooltrueWhether the sub-project should inherit the properties of the surrounding project. You can use this feature to share "global" settings between (sub-)projects.

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.