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. Subprojects and long build time?
Qt 6.11 is out! See what's new in the release blog

Subprojects and long build time?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k 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.
  • B Offline
    B Offline
    bapi23
    wrote on last edited by
    #1

    Hello

    Recently Im developing a little project with unit tests. There are Main project which is contain of one subproject - QtApplication and several Unit tests subproject. The problem is when I build only application and click start all ut's projects start to build - I don't' want it! I want to build and run only application project without bulding any subprojects. My Qt creator tree looks like this:

    Project:

    • ApplicationProject
    • UT1
    • UT2
      ...

    application and uts are on the same tree level. how can I change qt creator behaviour? I don't want to build all main project when i click build/run

    BR
    Bartek

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      If you have not modified files from UT sub-projects then make will not build them unless you modified some files in the main project and the tests depend on that files.

      I think you can right click on sub-project and tell qtcreator to build only that sub-project.

      Another option will be to comment out the sub-project which you don't want to build.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bapi23
        wrote on last edited by
        #3

        It's strange that we can chose subproject from targets and when press start it will build all subproject - it's seems that chosing target works only for build not for run. Is it only my feeling that it's unclear behaviour of UI in Qt?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          Check "this out":http://qt-project.org/forums/viewthread/15217/
          "Under the Projects tab, go to Run Settings, and you should be able to select it there."

          Another option is to click on fourth icon from bottom of side bar and it will show you all build and run targets.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bapi23
            wrote on last edited by
            #5

            hello again. Ok I found that I can "run project without deployment" and then nothing begin build but I can't debug without building all project! When I chose subproject from left panel and click debug all whole project begin to build and when i have some error in different subproject i cant debug my current subproject its strange and ridiculous behavior. How can I debug subproject without building all projects?

            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