I'm working on a C++ project which is currently divided into "sub modules" / "components". Each of these are compiled into a separate library (components are usually 10-20 files). The libraries are linked to tests which ensure that each component works as expected.
I've now started to work on the "main" part of the project that is using all those different components. The problem is, that in the end I want to 'ship' this project as a dynamic library. I'm however running into problems linking libraries to a library. I'm not sure if this is because I am doing something wrong with my tools or if this is simply not possible.
As such, my question is:
Does my approach of having separate components be libraries so I can easily develop and test them individually make sense in C++, given that I want to deliver this project as a library itself?