I have some projects that follows this dependency graph:
Executable
Main
Libraries A, B, and C
Main //_Depends_A_B_C
A //_Depends_B
B
C //Depends_B
Does it make more sense for me to make a super project that uses add_subdirectory
to put A, B, and C in global scope and link them all together?
Proj/
CMakeList.txt // Has add_subdirectory for each directory in b,a,c,Main order.
a/
b/
c/
Main/
Or should I go through the trouble of making a find_package
solution for them.
Main/
A/ //Installed to system
B/ //Installed to system
C/ //Installed to system
These libraries are in development so it is nice to be able to treat them all as one project in my IDE, but I don't want to be misusing add_subdirectory
to fit my specific dev tools.