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. General question about qmake
QtWS25 Last Chance

General question about qmake

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 353 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.
  • D Offline
    D Offline
    drmhkelley
    wrote on last edited by
    #1

    Does qmake or Qt Creator have any means of doing anything similar to the "include" directive for make?

    If so, I have not yet stumbled across it.

    I maintain a significant number of projects that all depend on a collection of locally developed and managed libraries. While a few of the projects were developed and exist within the Qt framework, most were developed and are used completely independently of Qt. For those within Qt, I include within the .pro files the necessary instructions that Qt Creator needs to build and debug the projects.

    When something changes in the non-Qt libraries that affects how Qt needs to deal with them, I find myself spending a fair bit of time updating Qt .pro files.

    In make, I do this by maintaining a "master" file of make instructions that is automatically included in any Makefile that I use. This makes it very straightforward to ensure that all projects know about the current (and sometimes the "nearly obsolete") versions of all relevant files, programs, libraries, etc.

    How does one typically manage these issues within the Qt framework?

    Thanks

    raven-worxR 1 Reply Last reply
    0
    • D drmhkelley

      Does qmake or Qt Creator have any means of doing anything similar to the "include" directive for make?

      If so, I have not yet stumbled across it.

      I maintain a significant number of projects that all depend on a collection of locally developed and managed libraries. While a few of the projects were developed and exist within the Qt framework, most were developed and are used completely independently of Qt. For those within Qt, I include within the .pro files the necessary instructions that Qt Creator needs to build and debug the projects.

      When something changes in the non-Qt libraries that affects how Qt needs to deal with them, I find myself spending a fair bit of time updating Qt .pro files.

      In make, I do this by maintaining a "master" file of make instructions that is automatically included in any Makefile that I use. This makes it very straightforward to ensure that all projects know about the current (and sometimes the "nearly obsolete") versions of all relevant files, programs, libraries, etc.

      How does one typically manage these issues within the Qt framework?

      Thanks

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @drmhkelley
      In qmake you can use:

      include(foo/bar.pri)
      

      There is actually no difference between .pri and .pro files, just for the sake of clarity that it is intended to be imported.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      D 2 Replies Last reply
      2
      • raven-worxR raven-worx

        @drmhkelley
        In qmake you can use:

        include(foo/bar.pri)
        

        There is actually no difference between .pri and .pro files, just for the sake of clarity that it is intended to be imported.

        D Offline
        D Offline
        drmhkelley
        wrote on last edited by
        #3

        @raven-worx Thanks. I'm pretty sure I tried that, but now I'll go back and make sure I tried it the proper way.

        1 Reply Last reply
        0
        • raven-worxR raven-worx

          @drmhkelley
          In qmake you can use:

          include(foo/bar.pri)
          

          There is actually no difference between .pri and .pro files, just for the sake of clarity that it is intended to be imported.

          D Offline
          D Offline
          drmhkelley
          wrote on last edited by
          #4

          @raven-worx Not at all sure what I did wrong before (it's been a while), but did just what I would have expected it to do. Problem solved

          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