[Qt-interest] How can I use the system envoriment variable in qt project file(.pro) ?
Kermit Mei
kermit.mei at gmail.com
Sat Nov 21 16:51:46 CET 2009
On Mon, 2009-11-16 at 10:48 +0100, Jochen Roemmler wrote:
> > How can I use the Linux system variable such as $PATH $QTDIR in .pro
> > file ?
> > For example, I want to use:
> > LIBS += -L$QTDIR/lib -lgui
> >
> > I want the compiler use argument "-L/opt/qt/lib -lgui" where
> > $QTDIR=/opt/qt
>
> LIBS += -L$$(QTDIR)/lib -lgui
>
> perhaps?
Thanks, I'd like to try when I work:)
More information about the Qt-interest-old
mailing list