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. How to divide a project into submodules?
Forum Updated to NodeBB v4.3 + New Features

How to divide a project into submodules?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 657 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.
  • R Offline
    R Offline
    rmam
    wrote on last edited by
    #1

    I'm working on a project which is currently comprised of two static libraries, a GUI application and a command line. The project is organized as a subdirs project that defines dependencies between the library modules, command line application and GUI application. As the GUI application grew, a couple of its components started to increase in size and complexity. I would like to move those components into independent submodules of the GUI project, preferably as static libraries. Yet, as those components are only used by the GUI application I want to avoid moving them out of the GUI project and next to the library modules. Does anyone know if there is a way to organize a project tree so that a GUI project includes submodules in its subdirectories?

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

      Hi
      Do you mean like Creators source where most things are plugins and have their own .pri file and its just included in the master .pro file?

      • so that a GUI project includes submodules in its subdirectories?
        If a submodule in this context could be a complete sub project using a .pri file and not a .pro file then yes.
        But im not sure i understand fully what you need.
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by aha_1980
        #3

        Hi,

        You can make you GUI project a subdir project the same way you did for the rest of the project.

        Take for example Qt's own sources, these are mainly subdir projects within subdir projects.

        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
        3

        • Login

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