Dear Community,
I am since a while trying to include all header files of my ITK library located in /usr/include/InsightToolkit/... However, this library is pretty big and contains around 50-100 sub directories. So what I did until now is writing
INCLUDEPATH += /usr/include/InsightToolkit/XY; /usr/include/InsightToolkit/XZ; ... but this is getting frustrating. Isn't there an elegant way? I was search for this in Google now for 3 hours without any result! I mean there are many people asking for this but I haven't seen a useful answer so far. I can't believe one can not include the sub directories automatically.
One of the answers were (also from this forum):
"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."
I do not even understand what is meant by adding subproject files .pri.
Thanks for any help
Nathi
Bookmarks