Qt Extended Home · Build System Home · Reference · User Guide · Internals codeless banner

Create a new project tree

There is an example project tree located in examples/externaltree. The example is designed to be copied outside of the source tree.

The tree features a minimal qbuild.solution.

    [Solution]
    [Solution\FilePaths]
    size = 0

The projects to build come from src/projects.pri.

    PROJECTS+=\
        libraries/mylib\
        applications/myapp

The example has a library called mylib that is installed into the SDK. It has a public header that is installed into the SDK, a semi-private header that is installed into the project tree and a private header that is not available outside the library. There is a mylib.dep file written in the SDK and one written in the project tree.

The library has a test case that can be executed by running qbuild test.

The example has an application that depends on mylib and uses both it's public and semi-private headers.

See also Advanced Tasks.


Copyright © 2009 Nokia
Qt Extended - Build System Documentation