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
Forum Updated to NodeBB v4.3 + New Features

Set output dir in .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.2k Views 1 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.
  • M Offline
    M Offline
    mandruk1331
    wrote on 24 Apr 2019, 20:06 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Apr 2019, 20:14 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

      M 1 Reply Last reply 24 Apr 2019, 20:21
      3
      • S SGaist
        24 Apr 2019, 20:14

        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.

        M Offline
        M Offline
        mandruk1331
        wrote on 24 Apr 2019, 20:21 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 24 Apr 2019, 20:29 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

          M 1 Reply Last reply 24 Apr 2019, 20:55
          0
          • S SGaist
            24 Apr 2019, 20:29

            Is that a subdirs project or two completely separated projects ?

            M Offline
            M Offline
            mandruk1331
            wrote on 24 Apr 2019, 20:55 last edited by
            #5

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

            Mandruk1331

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 24 Apr 2019, 21:01 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

              M 1 Reply Last reply 25 Apr 2019, 10:33
              1
              • S SGaist
                24 Apr 2019, 21:01

                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.

                M Offline
                M Offline
                mandruk1331
                wrote on 25 Apr 2019, 10:33 last edited by
                #7

                @SGaist they are completely different projects

                Mandruk1331

                A 1 Reply Last reply 25 Apr 2019, 18:26
                0
                • M mandruk1331
                  25 Apr 2019, 10:33

                  @SGaist they are completely different projects

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 25 Apr 2019, 18:26 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

                  6/8

                  24 Apr 2019, 21:01

                  • Login

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