Problem: I have subdirs template qmake project. Two in fact. They are unrelated. I was to include second subdir project (or more like certain subdirs of that project) into first one and start using that.
For example let the first project consists of A1, B1, C1
subprojects (subdirs with A|B|C1.pro
) and second of A2, B2, C2
.
I want to include B2 and C2 into my first project so it becomes like this:
A1, B1, C1, B2, C2
So I can start using classes and interfaces provided by B2 which depends on C2.
And I want to do it as less intrusive to second project as possible. The problem I'm encountering is that I'm trying to do this just by adding B2 and C2 .pro files to first project subdirs template and it can't build it because some class in B2 may have in it and compiler can't understand where to find it.
I can't find a simple (or just "right") way to do what I want - start using second project code as cleanly and sync-friendly as possible without resorting to copy-pasting everything I need into first project.