project.sourceDirectory is undefined in a product of a project of another project. I've been able to reproduce the problem in a minimal example and posted bug report. https://bugreports.qt-project.org/browse/QBS-699 S. Fabry