Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is possible set output directory in pro?
Qt 6.12 LTS is out! See what's new in the release blog

Is possible set output directory in pro?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.5k Views 2 Watching
  • 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.
  • A Offline
    A Offline
    AndrzejB
    wrote on last edited by AndrzejB
    #1

    Outputs are in build directories like
    d:\wazne\github_mytemp\qteditor_tmp\build-qedytor-Desktop_Qt_5_12_0_MinGW_64_bit-Release\release
    or
    d:\wazne\github_mytemp\qteditor_tmp\build-qedytor-Desktop_Qt_5_12_0_MinGW_64_bit-Debug\

    I have project using library, library has also .pro
    file .a is generated in build-libname-Desktop_Qt_5_12_0_MinGW_64_bit-Debug whereas :

    • I don't want "5_12_0" wheras anybody can other version of Qt
    • I prefer settings in .pro, not .user because I want not to save .user file in git on github.

    Intermediate files may be in standard build directory, but .a I want create or even copy to other destination place.

    kshegunovK 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      yes, but I don't remember the Qt macros to do it.

      The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AndrzejB
        wrote on last edited by
        #3

        I solve it in half by manually copy/move .a file after rebuild library, but better would be automatic rebuild libraries.

        aha_1980A 1 Reply Last reply
        0
        • A AndrzejB

          I solve it in half by manually copy/move .a file after rebuild library, but better would be automatic rebuild libraries.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @AndrzejB

          Looks like you want to setup a SUBDIRS project.

          Just make sure to ignore the "CONFIG += ordered" section.

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • A AndrzejB

            Outputs are in build directories like
            d:\wazne\github_mytemp\qteditor_tmp\build-qedytor-Desktop_Qt_5_12_0_MinGW_64_bit-Release\release
            or
            d:\wazne\github_mytemp\qteditor_tmp\build-qedytor-Desktop_Qt_5_12_0_MinGW_64_bit-Debug\

            I have project using library, library has also .pro
            file .a is generated in build-libname-Desktop_Qt_5_12_0_MinGW_64_bit-Debug whereas :

            • I don't want "5_12_0" wheras anybody can other version of Qt
            • I prefer settings in .pro, not .user because I want not to save .user file in git on github.

            Intermediate files may be in standard build directory, but .a I want create or even copy to other destination place.

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            DESTDIR = <output directory>

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            3

            • Login

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