Defining a relative HOME path in the Project file?

  • How do you define a relative HOME path in the project file? If I install an app on many boxes, I need a relative home path(/home/fred, /home/bob, /home/joe...) Looking at the documentation, it seems that $$(PWD) will not give me this. I want set the rpath with something like this QMAKE_RPATHDIR = $$HOME/myApp/locallibs (of course $$HOME is not valid)

  • I think this should work:

    @QMAKE_RPATHDIR = $$(HOME)/myApp/locallibs

  • Thanks, it worked like a charm.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.