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. [Solved] Best Qt project skeleton

[Solved] Best Qt project skeleton

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.9k Views
  • 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
    Max13
    wrote on last edited by
    #1

    Hello world!

    I'm on a private project (on github) which is using one of my libraries, publicly available on Github.
    I was wondering what could be the best project skeleton for a Qt/classic project?

    And also, the best way to include my lib to the project? For example, symfony is using composer, you put in a json etc... I can use git-submodules to handle it, but I'm still wondering about the internal directories structure of my project.

    What is the community saying about that ?
    Thank for your help.

    We all have started by asking questions. Then after some time, we can begin answering them.

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

      HI,

      Generally I go with something like that:

      @myProject

      • apps <- can contain one or several apps
        • myApp
          • src
          • tests <-- app specific tests
      • libs
        • myLib
          • src
          • tests <-- lib specific tests
        • myExternalLib1
        • tests <-- "libs interaction" tests
          @

      Hope it helps

      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
      • M Offline
        M Offline
        Max13
        wrote on last edited by
        #3

        It seems really a guid directory structure.
        It allows the "subdirectory" structure of qt-creator.

        Thanks !

        We all have started by asking questions. Then after some time, we can begin answering them.

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

          That's exactly the point, subdirectories to have each "entity" managed separately :)

          You're welcome !

          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
          • M Offline
            M Offline
            Max13
            wrote on last edited by
            #5

            BTW: Using git-submodules for this type of structure, is it appropriate ?

            We all have started by asking questions. Then after some time, we can begin answering them.

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

              No problem with that (unless your additional library are using a different build system, then it can get complicated)

              If you have 3rd party dependencies (as in i.e. only binary available) I personally use an additional folder names 3rdparty for them.

              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
              • M Offline
                M Offline
                Max13
                wrote on last edited by
                #7

                [quote author="SGaist" date="1371332989"]If you have 3rd party dependencies.[/quote]
                Actually I don't know how can it be called but my apps needs a library (made on Qt too). According to "SUBDIRS":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#subdirs, I can easily tell the Project about the dependencies.

                Thanks.

                We all have started by asking questions. Then after some time, we can begin answering them.

                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