Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get Qt building the project inside the source directory

How to get Qt building the project inside the source directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 982 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lolo67
    wrote on last edited by
    #1

    I am trying to have Qt building the project inside the source directory.

    Therefore I would like to know if there is a way to define the shadow build directory path from the .pro file.
    In other words how can I influence from the .pro file the value that the qmake OUT_PWD variable will receive.

    I insist on the fact that I would like to specify this from the .pro file, not from the .pro.user file. The .pro file is checked in my version control system, the .pro.user file not.

    Now it is:

    * build-pam-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug
    * workspace
       - doc
       - src
       - dist
    

    And it should become

    * workspace
       - build-pam-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug
       - doc
       - src
       - dist
    
    K 1 Reply Last reply
    0
    • L Lolo67

      I am trying to have Qt building the project inside the source directory.

      Therefore I would like to know if there is a way to define the shadow build directory path from the .pro file.
      In other words how can I influence from the .pro file the value that the qmake OUT_PWD variable will receive.

      I insist on the fact that I would like to specify this from the .pro file, not from the .pro.user file. The .pro file is checked in my version control system, the .pro.user file not.

      Now it is:

      * build-pam-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug
      * workspace
         - doc
         - src
         - dist
      

      And it should become

      * workspace
         - build-pam-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug
         - doc
         - src
         - dist
      
      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Lolo67

      You can change it for every project and mode, if I am not mistaken, under the project button on the left and "build", you see the build directory.

      Or you go to "Tools"->"Options"->"Build&Run" under the "general" tab, you can set the default build directory as last option.

      Vote the answer(s) that helped you to solve your issue(s)

      mrjjM 1 Reply Last reply
      3
      • K koahnig

        @Lolo67

        You can change it for every project and mode, if I am not mistaken, under the project button on the left and "build", you see the build directory.

        Or you go to "Tools"->"Options"->"Build&Run" under the "general" tab, you can set the default build directory as last option.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        What @koahnig suggest works good as i have had my build directory on ramdrive since day one :)
        However you ask about doing it in .pro file
        http://stackoverflow.com/questions/2580934/how-to-specify-different-debug-release-output-directories-in-qmake-pro-file

        Note. Visual Studio has other view of the world than say mingw.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved