Location of non-exported header files?
For a package which is only building a binary and not exporting libraries, should the headers still go in include/pkgname
, or can/should they then go in src
? The Packages page says:
include/package_name
: C++ include headers (make sure to export in the CMakeLists.txt)
My um6 sensor driver has them split, while rosserial_server has them all together.
In both cases, there are templated classes in the headers, which means they contain a lot of actual function bodies. Should these headers be exported anyway, despite that they're not intended to be an API? Which approach is best?