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. Subdirs project INSTALLS

Subdirs project INSTALLS

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 1.3k 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
    MartinD
    wrote on last edited by
    #1

    Hi,
    I use TEMPLATE = subdirs base project that has INSTALLS section. Subprojects of base project also have INSTALLS section and I noticed that INSTALLS from base project are invoked before INSTALLS from subprojects. I don't know if it is rule or coincidence.

    Is it possible to always execute INSTALLS of base project after all INSTALLS of all subprojects have been executed? I need it this way because INSTALLS of base depends on files installed via INSTALLS of subprojects.

    I use jom.exe for build.

    kshegunovK 1 Reply Last reply
    0
    • M MartinD

      Hi,
      I use TEMPLATE = subdirs base project that has INSTALLS section. Subprojects of base project also have INSTALLS section and I noticed that INSTALLS from base project are invoked before INSTALLS from subprojects. I don't know if it is rule or coincidence.

      Is it possible to always execute INSTALLS of base project after all INSTALLS of all subprojects have been executed? I need it this way because INSTALLS of base depends on files installed via INSTALLS of subprojects.

      I use jom.exe for build.

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

      @MartinD
      Have you tried setting a dependency? Something along the lines of:

      SUBDIRS = project1 project2
      # ...
      TARGET.depends = prohject1 project2
      

      Read and abide by the Qt Code of Conduct

      M 1 Reply Last reply
      2
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        alternatively move the installs on another GeneralInstall.pro file and make add it to the current subdir project setting the depends

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        M 1 Reply Last reply
        3
        • kshegunovK kshegunov

          @MartinD
          Have you tried setting a dependency? Something along the lines of:

          SUBDIRS = project1 project2
          # ...
          TARGET.depends = prohject1 project2
          
          M Offline
          M Offline
          MartinD
          wrote on last edited by
          #4

          @kshegunov Unfortunately, this doesn't have any effect. I still see installs of subdir projects to come later than install of my base project if TARGET.depends of my base project contains all my subdir projects.

          kshegunovK 1 Reply Last reply
          0
          • M MartinD

            @kshegunov Unfortunately, this doesn't have any effect. I still see installs of subdir projects to come later than install of my base project if TARGET.depends of my base project contains all my subdir projects.

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

            Then follow @VRonin's suggestion and add it as a subtarget, I have nothing better.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            0
            • VRoninV VRonin

              alternatively move the installs on another GeneralInstall.pro file and make add it to the current subdir project setting the depends

              M Offline
              M Offline
              MartinD
              wrote on last edited by
              #6

              @VRonin This works! Thanks.

              1 Reply Last reply
              0
              • yy_pc_programmerY Offline
                yy_pc_programmerY Offline
                yy_pc_programmer
                wrote on last edited by
                #7

                Hello there. I am learning qt for the first time. What I want to do is create subproject. But I don't know how to do this in qt. How can I follow a step? So I don't want to create from codes. I just want to create from qt's menus. Is this possible?

                1 Reply Last reply
                0

                • Login

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