Results 1 to 6 of 6

Thread: How to get current dir using qmake?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Posts
    128
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 28 Times in 27 Posts

    Wink Re: How to get current dir using qmake?

    And, just in case you were interested in a straight answer instead of the "do you really need that what you ask for" answer I gave you above:
    Check out

    $$_PRO_FILE_PWD_
    or
    $$OUT_PWD

    Not nice, nor documented and I have only checked to see it is in 4.2.2 but this (or rather one of these, depending of use-case) seems to be what you asked for ;-)
    Last edited by camel; 7th January 2007 at 21:51. Reason: found the OUT_PWD

Similar Threads

  1. Flex, Bison and qmake
    By Hydragyrum in forum Qt Programming
    Replies: 5
    Last Post: 2nd May 2011, 16:52
  2. qmake and mingw trouble
    By krivenok in forum Qt Programming
    Replies: 8
    Last Post: 12th February 2009, 22:58
  3. qmake to build both 32-bit and 64-bit
    By lni in forum Qt Programming
    Replies: 8
    Last Post: 12th December 2006, 20:35
  4. Replies: 5
    Last Post: 13th March 2006, 21:22
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.