There is a group of Qt projects, among which is the main application, the dynamic library and the static library. It is required to organize their joint assembly taking into account dependencies. I did this with the help of the SUBDIRS project for this article . Here is the project group sgip_global.pro file:

TEMPLATE = subdirs sgip_main.subdir = ../sgip sgip_driver.subdir = ../sgip_sokol_dll/usb_sgip_dll sgip_db.subdir = ../rzmdblib/lib_db_rzm SUBDIRS = sgip_main sgip_driver sgip_db sgip_main.depends = sgip_driver sgip_db 

This creates the build directory for the sgip_global project, in which one makefile appears. Other projects are collected in the same directory as the source. This is wrong, because the author promised that

The entire project of the subdirs type together with its subsidiary projects is built into one shadow directory - with the repetition of the source directory structure. Very comfortably.

How to achieve such an assembly?

    1 answer 1

    It turns out that the subproject can not be located in a directory other than where the main pro-file is located. When I moved all the subprojects to the correct directory, it all worked.