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 make subprojects inherit options defined in the root project?
Forum Updated to NodeBB v4.3 + New Features

Can I make subprojects inherit options defined in the root project?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.0k Views 1 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.
  • D Offline
    D Offline
    dgiglio
    wrote on last edited by dgiglio
    #1

    For example, when I define the following libs in the .pro file for root

    LIBS += -L/usr/lib \
    -lopencv_imgproc \
    -lopencv_highgui \
    -lopencv_core

    I'd like that all children projects would inherit this dependency.
    Is it possible?
    Thanks in advance.

    K 1 Reply Last reply
    0
    • D dgiglio

      For example, when I define the following libs in the .pro file for root

      LIBS += -L/usr/lib \
      -lopencv_imgproc \
      -lopencv_highgui \
      -lopencv_core

      I'd like that all children projects would inherit this dependency.
      Is it possible?
      Thanks in advance.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @dgiglio

      Hi and welcome to devnet forum

      this post might be of help for you.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • semlanikS Offline
        semlanikS Offline
        semlanik
        wrote on last edited by
        #3

        You can use .pri file in subprojects or define some variables in .qmake.conf

        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