Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Subdirs project with custom step between projects?
Qt 6.11 is out! See what's new in the release blog

Subdirs project with custom step between projects?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 2 Posters 508 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.
  • S Offline
    S Offline
    Szymon Sabat
    wrote on last edited by
    #1

    I have a subdirs project and a custom build step that needs to be executed after one of the subprojects is already build but before another subproject begin building.

    So what's need to happen is:

    1. qmake on sub1.pro and make
    2. my custom build step
    3. qmake on sub2.pro and make

    For now I just open the projects separately and build them by hand in order... but the build takes some time so this is inconvenient and in reality there is more than only 3 steps so I created two subdirs pro files but that's just ugly.

    Custom qmake steps for each subproject's pro file? What's the elegant solution?

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

      Hi,

      What does your custom build step need to do ?

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Szymon Sabat
        wrote on last edited by
        #3

        @SGaist said in Subdirs project with custom step between projects?:

        Hi,

        What does your custom build step need to do ?

        It builds Godot module with SCons, this module needs the first subproject (non-Qt shared library). The third subproject is tests for the library written with Qt. It all warks together well, just I have to compile everything in order, using separate PRO files. There are also some other things in the subproject but not really important.

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

          In that case, wouldn't it be simpler to do that with cmake ?

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Szymon Sabat
            wrote on last edited by
            #5

            Probably... I'm just so used to qmake I didn't even consider it. Now that Qt6 will use cmake anyway, maybe it's time to learn... so, what I want is impossible in a way I wanted it, yes?

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

              You could have a third subdirs project that handles the intermediate build between the two others.

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

              1 Reply Last reply
              1

              • Login

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