Qmake and recursive include directories
-
Let say I have a directory called src, where all my code exists, like this:
@/src
/component1
/component2
/subcomp2-1
/component3
/subcomp3-1@
... etcWhat I'm looking for is a way to add all the sub dirs of /src to the INCLUDEPATH without manually typing them all in. Seems like there should be some way of using qmake functions to loop over these dirs.
M
-
You have to add 'em all manually. I did it by adding subproject files (.pri by convention) which add all the source and header and incl paths for a particular component. Then in my main .pro file you can use the include directive.
This could probably be scripted in qmake language. I'm too lazy for that.
-
Is there any efficient way to handle this?