0

I want to build a library which is easy to use and link to. Therefore, I do not want the user of my library to bother with building and linking against the libraries my library uses. What is the best approach of managing and building/linking the dependencies for your own library in order to assure the most simple usage of it?

E.g.: My library uses CURL and OpenSSL. Building and linking on Windows with those dependencies is a pain. I want to avoid this pain to the users of my library.

I use CMake for building.

Related to: Combine libraries and Linking static libraries to other static libraries

Simon Pio.
  • 115
  • 1
  • 14
  • Automate linking process by providing INSTALL section in cmake or by taking advantage of some dependency manager like [Conan](https://conan.io/). – Marek R Mar 11 '20 at 16:43
  • Only specific platforms like Linux? Or different platforms? – Werner Henze Mar 11 '20 at 20:39
  • @Werner Henze, in general. Eventhough installing/linking is easy on Linux, building the same library on Windows might be a pain (caused by dependency installation, e.g. OpenSSL) – Simon Pio. Mar 11 '20 at 20:49

0 Answers0