0

I have a big qt project but it is composed of a main application, APIs and plugins

TEMPLATE = subdirs

SUBDIRS += app api plugins updater

api.subdir = api
app.subdir = app
app.depends = api
plugins.subdir = plugins
plugins.depends = api

APIs are static libs. So, i want link automatically APIs with main app and plugins.

For example, i need to do:

LIBS += -L/path/to/lib -lapi

But it's ugly and i can't share this. I want to qmake do it dynamically.

How can I do?

Intelligide
  • 279
  • 2
  • 14
  • Possible duplicate http://stackoverflow.com/q/781494/3098505 – chrisb2244 Sep 20 '15 at 15:24
  • 1
    @chrisb2244 I think it's more a duplicate of [this question.](https://stackoverflow.com/questions/1417776/how-to-use-qmakes-subdirs-template) but I agree it's a duplicate – user23573 Sep 20 '15 at 15:47

0 Answers0