Make sure that installation of a library drags dependent static libraries within
When a library target is defined, and it's dependent on another target, which is a library (no matter if static or dynamic), make sure that installation of the library is enforced under certain conditions. For example:
- Dynamic library (or program) dependent on static library: nothing needed
- Dynamic library (or program) dependent on a dynamic library: the dependent library must be installed (issue an error if the library isn't going to be installed)
- Static library dependent on a static library: installation of a static library must enforce installation of the dependent static library (if the dependent static library isn't to be installed, add this to the installation bundle of the parent library!)
- Static library dependent on a dynamic library: this should make sure that the dynamic library is to be installed (issue an error if dynamic library doesn't have installation category defined)