[Qt-interest] qmake does not find source files
Joerg Bornemann
joerg.bornemann at nokia.com
Wed Oct 5 09:59:37 CEST 2011
On Tue, 2011-10-04 at 09:25 +0200, ext Schimkowitsch Robert wrote:
> That doesn't make much sense.
It might be inconvenient but its totally sensible.
The include(foo.pri) copies the content of foo.pri just like the C
preprocessor does. No magic, no surprise.
> The .pro file naturally needs to know where the .pri files is. But it
> shouldn't require knowledge of the source location within that .pri
> file. That would create a bunch of unneccessary dependencies causing
> the .pri file and it's sources to be less easily transferred or moved.
If you just prepend $$PWD to your source files in a .pri there are no
dependencies which prevent you from moving the folder where the .pri
file is located.
> Also, I couldn't find anything about that in the qmake documentation.
Actually, that might be the biggest problem. :-)
We have
http://doc.qt.nokia.com/4.7/qmake-function-reference.html#include-filename
http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#pwd
But the reader must connect these loose strings him/herself.
BR,
Jörg
More information about the Qt-interest-old
mailing list