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. Set output dir in .pro file

Set output dir in .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.2k 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.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on last edited by
    #1

    Hello.
    Can someone tell me is it possible to set in .pro file for the .exe file to be create in the same directory as the source?

    Mandruk1331

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The easiest is to not use the Shadow Build feature of Qt Creator.

      However this also means that you will have all build artefacts in your sources which is something that you usually want to avoid.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      mandruk1331M 1 Reply Last reply
      3
      • SGaistS SGaist

        Hi,

        The easiest is to not use the Shadow Build feature of Qt Creator.

        However this also means that you will have all build artefacts in your sources which is something that you usually want to avoid.

        mandruk1331M Offline
        mandruk1331M Offline
        mandruk1331
        wrote on last edited by mandruk1331
        #3

        @SGaist But is it possible in the .pro file to copy the file which I want into the source folder?

        The goal which I want to achieve, is for the Application which depends on a library remove the hardcoded path to the library path of where it is built.
        MainProject.pro

        INCLUDEPATH += "../LibFile"
        LIBS += "C:\Users\<UserName>\Documents\build-LibFile-Desktop_Qt_5_11_1_MinGW_32bit-Debug\debug\libLibFile.a
        

        Mandruk1331

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Is that a subdirs project or two completely separated projects ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          mandruk1331M 1 Reply Last reply
          0
          • SGaistS SGaist

            Is that a subdirs project or two completely separated projects ?

            mandruk1331M Offline
            mandruk1331M Offline
            mandruk1331
            wrote on last edited by
            #5

            @SGaist The first is the location of the include files of the liLibFile.a

            Mandruk1331

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              That I know. My question was: is that library and the application parts of a project using the subdirs template or are they completely separated projects ? The INCLUDEPATH line suggests the former.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              mandruk1331M 1 Reply Last reply
              1
              • SGaistS SGaist

                That I know. My question was: is that library and the application parts of a project using the subdirs template or are they completely separated projects ? The INCLUDEPATH line suggests the former.

                mandruk1331M Offline
                mandruk1331M Offline
                mandruk1331
                wrote on last edited by
                #7

                @SGaist they are completely different projects

                Mandruk1331

                aha_1980A 1 Reply Last reply
                0
                • mandruk1331M mandruk1331

                  @SGaist they are completely different projects

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

                  @mandruk1331 but you are working on both regularly?

                  The SUBDIRS is the BEST you can do.

                  The projects might still be in different Git repositories, but with Git submodule and Qt SUBDIRS you get the maximum productivity and flexibility.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  2

                  • Login

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