Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to get Qt building the project inside the source directory

    General and Desktop
    3
    3
    827
    Loading More Posts
    • 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
      Lolo67 last edited by

      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 Reply Quote 0
      • K
        koahnig @Lolo67 last edited by

        @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)

        mrjj 1 Reply Last reply Reply Quote 3
        • mrjj
          mrjj Lifetime Qt Champion @koahnig last edited by

          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 Reply Quote 1
          • First post
            Last post