Solved Subdirs project INSTALLS
-
Hi,
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.
-
@MartinD
Have you tried setting a dependency? Something along the lines of:SUBDIRS = project1 project2 # ... TARGET.depends = prohject1 project2
-
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.
-
Hello there. I am learning qt for the first time. What I want to do is create subproject. But I don't know how to do this in qt. How can I follow a step? So I don't want to create from codes. I just want to create from qt's menus. Is this possible?