I have a structure of this type:
FolderA/mylibA1
FolderA/mylibAN
FolderA/libsA.pro # SUBDIRS with all mylibAxx
mylibB1
mylibBN
libsB.pro # SUBDIRS with all mylibAxx
libsA_and_libsB.pro # SUBDIRS that just include FolderA/libsA.pro and libsB.pro
where in each mylibXX there is a .pro file that includes all the .h / .cpp files. All mylibBxx depend on libraries of type mylibAxx.
I am using the QMake keyword depend and file to make all libraries depend on each other instead of using the CONFIG+= ordered QMake option.
There is no problem with the Makefile generated for mylibA.pro. All mylibAxx libraries compile. The issue is with the libraries of type mylibBxx. The Makefile.mylibBxx contains references to the libraries of type mylibAxx, but they are not present on it (they are in FolderA/libsA.pro ), so make gives an error of type:
make: *** No rule to make target mylibAxx-qmake-all needed by mylibBxx-qmake-all . Stop.
Is there any way in QMake to make the mylibBxx Makefile see the mylibAxx ?
Thank you in advance for any suggestion