Solved Set depends of a project to another subdirs project.
-
The title may be a little confusing, so let me explain.
Let's suppose i have this project structure:main.pro Base(subdirs) - S(lib),R(lib),Q(lib) A(app) B(app)
main.pro looks like this:
TEMPLATE = subdirs SUBDIRS = \ Base \ A \ B \ A.depends = Base B.depends = Base
But I in reality A depends only from S and R, and B depends only from Q.
Is there any way to set .depends to project(s) in subdirs project, not to whole subdirs project? -
Hi,
You can be more specific in your
.depends
declaration. See this very good article -
@SGaist thanks, that helps.
But now i have another one question:
I made smth like this in my pro file:logger_lib.subdir = base/Logger logger_lib.target = lib_logger manager_app.subdir = manager manager_app.target = app_manager manager_app.depends = lib_logger
but in my qt creator view logger and manager are on the same line.
how i can bring logger to subdir base? -
What version of Qt Creator is it ?
-
@SGaist
3.6.0 -
I didn't remember any switch for that and after a quick check I didn't found any
-
@SGaist ok. thanks