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. Set depends of a project to another subdirs project.
Qt 6.11 is out! See what's new in the release blog

Set depends of a project to another subdirs project.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 1.4k Views 2 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
    sergboec
    wrote on last edited by
    #1

    The title may be a little confusing, so let me explain.
    Let's suppose i have this project structure:

    main.pro
    Base(subdirs) - S(lib),R(lib),Q(lib)
    A(app)
    B(app)
    

    main.pro looks like this:

    TEMPLATE = subdirs
    SUBDIRS = \ 
    Base \ 
    A \ 
    B \
    A.depends = Base
    B.depends = Base
    

    But I in reality A depends only from S and R, and B depends only from Q.
    Is there any way to set .depends to project(s) in subdirs project, not to whole subdirs project?

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

      Hi,

      You can be more specific in your .depends declaration. See this very good article

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You can be more specific in your .depends declaration. See this very good article

        S Offline
        S Offline
        sergboec
        wrote on last edited by
        #3

        @SGaist thanks, that helps.
        But now i have another one question:
        I made smth like this in my pro file:

        logger_lib.subdir = base/Logger
        logger_lib.target = lib_logger
        
        manager_app.subdir = manager
        manager_app.target = app_manager
        manager_app.depends = lib_logger
        

        but in my qt creator view logger and manager are on the same line.
        how i can bring logger to subdir base?

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

          What version of Qt Creator is it ?

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

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            What version of Qt Creator is it ?

            S Offline
            S Offline
            sergboec
            wrote on last edited by
            #5

            @SGaist
            3.6.0

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

              I didn't remember any switch for that and after a quick check I didn't found any

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

              S 1 Reply Last reply
              1
              • SGaistS SGaist

                I didn't remember any switch for that and after a quick check I didn't found any

                S Offline
                S Offline
                sergboec
                wrote on last edited by
                #7

                @SGaist ok. thanks

                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