Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Subdirs project INSTALLS
I use TEMPLATE = subdirs base project that has INSTALLS section. Subprojects of base project also have INSTALLS section and I noticed that INSTALLS from base project are invoked before INSTALLS from subprojects. I don't know if it is rule or coincidence.
Is it possible to always execute INSTALLS of base project after all INSTALLS of all subprojects have been executed? I need it this way because INSTALLS of base depends on files installed via INSTALLS of subprojects.
I use jom.exe for build.
Have you tried setting a dependency? Something along the lines of:
SUBDIRS = project1 project2 # ... TARGET.depends = prohject1 project2
VRonin last edited by
alternatively move the installs on another GeneralInstall.pro file and make add it to the current subdir project setting the depends
@kshegunov Unfortunately, this doesn't have any effect. I still see installs of subdir projects to come later than install of my base project if TARGET.depends of my base project contains all my subdir projects.
Then follow @VRonin's suggestion and add it as a subtarget, I have nothing better.
@VRonin This works! Thanks.