I got a project that uses Cmake and has a configuration to create a shared library. This project has some external dependencies (like zlib, etc). Generating shared library and linking against it would require not only providing dll generated by the project, but also dlls for all dependancies (since the library itself is linked against other libraries).
I'm wondering if it's possible to create a single dll of that project, that would have statically linked all dependencies into it. I tried creating an OBJECT
library and using it to create a SHARED
library with Cmake, but had no luck with this approach. Is this can be achieved?
Unfortunately static linking of the whole library is not an option due to licensing issues and I'd like to avoid attaching 10 dlls to the application package. I need that only for Windows.