[Qt-interest] setting makfile variable from .pro file
Pete Black
theblackpeter at gmail.com
Wed Feb 4 08:01:27 CET 2009
Hey guys,
Anyone know a good way to set an environment variable used in the qmake
generated makefile from the .pro file?
For instance I would like to set a default value for $INSTALL_ROOT from
my .pro file like so:
INSTALL_ROOT = "/usr/local"
and have it set in the generated makefile. The only way I know right now
is to pass the value when calling make:
make INSTALL_ROOT="/usr/local" all
Can this be done by defining a new feature in a .prf file perhaps?
Thanks,
Pete
More information about the Qt-interest-old
mailing list