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. Using qmake feature to define 3rd-party library specifics; anyone tried doing that?
Forum Update on Monday, May 27th 2025

Using qmake feature to define 3rd-party library specifics; anyone tried doing that?

Scheduled Pinned Locked Moved General and Desktop
qmakefeatures
4 Posts 2 Posters 1.5k 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.
  • K Offline
    K Offline
    Karen Morrissey
    wrote on 21 Sept 2015, 15:40 last edited by
    #1

    I'm new to qmake and am beginning to set up a large project (~400 sub-projects). I was thinking of defining qmake features for each of the non-qmake pre-built 3rd-party libraries we use in applications, to encapsulate the specifics of where the libraries are stored for different OSes and platforms and keep the application project files easier to maintain.

    Has anyone tried doing something like that, and can you tell me how well it worked? Can anyone tell me why using a feature like this might be a bad idea?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Sept 2015, 21:46 last edited by
      #2

      Hi,

      Do you mean a XXX.pri file corresponding per 3rd party library ?

      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
      • K Offline
        K Offline
        Karen Morrissey
        wrote on 22 Sept 2015, 22:46 last edited by
        #3

        No, I mean a .prf file, although a .pri would probably work just fine. The main difference is that using a .prf file gives you a keyword you can add to CONFIG that will cause the contents of the .prf file to be included.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Sept 2015, 21:12 last edited by
          #4

          You can take inspiration from the QWT project, they use that technique

          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

          2/4

          21 Sept 2015, 21:46

          • Login

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