[Qt-creator] Custom Build Step Problem
Andre Poenitz
andre.poenitz at mathematik.tu-chemnitz.de
Tue Jul 21 19:06:14 CEST 2009
On Tue, Jul 21, 2009 at 09:53:37AM +0100, Robert Caldecott wrote:
> I am trying to create a custom build that uses a relative path and I
> cannot get it to work without specifying the full path to the exe I am
> trying to run. The exe is stored in a sub-folder of my main project,
> so I am trying to add something like this in the 'Command' box:
>
> ./version/debug/version.exe
>
> But it fails. Instead I have to use the full path, e.g.:
>
> C:\Documents and Settings\User\My
> Documents\Qt\Project\version\debug\version.exe
>
> This is a real problem as other people will be checking out this
> project into different folders, rendering the custom build step
> useless.
>
> Does Qt Creator add any special environment variables that point to
> the .pro folder location that I can use? This is a bit of a
> show-stopper at the moment so I'm hoping there is a way to do this.
> Visual Studio defines a whole bunch of magic variables that expand to
> local project folders, which is very useful.
Look up 'qmake Variable Reference' in the integrated help.
$$PWD, possibly $$OUT_PWD might be helpful.
Andre'
More information about the Qt-creator-old
mailing list