[Qt-interest] Get parent directory when including .pro files

Jeroen Wijnhout jeroen.wijnhout at gmail.com
Mon Sep 7 15:37:31 CEST 2009


> OK. But the Config.pri has to check for a file that is part of the project
> from the .pro. The .pro and the .res reside in the same directory. The .pri
> resides in a different directory. The question is, how do I get the directory
> of .pro in .pri?

You don't have to. QMake will import the Config.pri into your .pro
file, then it will execute the rules of the complete .pro file. It
works exactly as the #include directive of the C++ preprocessor. Just
give it a try.

best,
Jeroen



More information about the Qt-interest-old mailing list