[Qbs] Concatenating include paths with Qbs

Timur Kristóf timur.kristof at gmail.com
Wed May 24 10:27:20 CEST 2017

Hi Christian,

Thanks for your answer!

> A product's properties are "private" in that they are not accessible
> from other products. You add module properties such as
> cpp.includePaths to depending products using an Export item:
> Product {
>     name: "ex"
>     // ...
>     Export {
>         Depends { name: "cpp" }
>         cpp.includePaths: product.myIncludes // "product" refers to
> the exporting product
>     }
> }
> Note that you don't have to do anything in the other product except
> adding the dependency to "ex".

This still doesn't work for me:
The includes from the library don't get added to the application.
Am I doing it wrong?

It works if I do it like this, but this would lead to code duplication:


More information about the Qbs mailing list