[Qt-interest] Get parent directory when including .pro files
Lars Amsel
lars.amsel at signalion.com
Fri Sep 4 09:52:38 CEST 2009
Hi,
I use a master.pro to manage tasks that are common to my projects. One is to
add the resource file to the build flags.
----8<----8<----
win32 {
QMAKE_LFLAGS_WINDOWS += $${TARGET}.res
}
----8<----8<----
There are a few projects that do not have such a resource. So I want to do a
test whether the resource file exists before added it the the make flags.
Unfortunately
win32 {
exists($${TARGET}.res) {
QMAKE_LFLAGS_WINDOWS += $${TARGET}.res
}
}
does not work as exists do the test in the directory of the master.pro instead
of the project.pro. Is there a variable that holds this information or some
other trick?
regards
Lars
More information about the Qt-interest-old
mailing list