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. Can I change Qt's pro file settings to influence sub-projects settings?

Can I change Qt's pro file settings to influence sub-projects settings?

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

    I need to know if qmake could process sub-projects based on super-project settings, In other words, to set sub-project dependent on super pro file. Thanks in advance.

    我们自己的论坛:http://qtdream.com
    擅长三维角色仿真动画。

    Paul ColbyP 1 Reply Last reply
    0
    • jiancaiyangJ jiancaiyang

      I need to know if qmake could process sub-projects based on super-project settings, In other words, to set sub-project dependent on super pro file. Thanks in advance.

      Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by
      #2

      Hi @jiancaiyang,

      I need to know if qmake could process sub-projects based on super-project settings, In other words, to set sub-project dependent on super pro file.

      Yes, in a slightly inverted way. The super project "pro" file can include sub-projects, but this is mostly a build-target / dependency convenience. However, the sub-projects can each include a common qmake include "pri" file to share common project settings.

      For a simple example, have a read of https://dragly.org/2014/03/13/new-project-structure-for-projects-in-qt-creator-with-unit-tests/ and note the use of the multiple *.pro files, with one *.pri file. And a more elaborate (real world) example from one of my open source projects - https://github.com/pcolby/bipolar/blob/master/common.pri

      Cheers.

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

        Hi,

        What kind of settings do you have in mind ?

        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

        • Login

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