Package helper libraries with my library C++

156 Views Asked by At

I am writing a library that uses other libraries which I have included in my header files due to templates. I am using CMake for a build system, and the helper libraries are kept as submodules in the external directory. I want to provide the user access to header files of these libraries so the user can do #include <mylib/helperlib/helper.h>. How do I arrange my project tree to achieve this? Also, How do I integrate it with CMake to generate install targets?

This is my project tree.

.
├── examples
├── external
├── include
├── res
└── src

Links:

This is my library.

libfmt is the library I want to package with my project.

P.S. Helper libraries are not necessarily header only.

0

There are 0 best solutions below