How to use pkginclude_HEADERS and Automake to get a second include directory?

Most of this topic has been covered in this thread at pkginclude_HEADERS.

I have an open source library and it has some common names. I suspect that the best solution is to include my umbrella in the pkginclude_HEADERS directory, and then an additional directory that has all the other headers. Then in the umbrella file usage will be #include.

How can I get automake to do this? Thanks!

+6
source share
1 answer

Probably:

nobase_pkginclude_HEADERS = subdir/subfile.h 

therefore, subfile.h copied to ${pkgincludedir}/subdir/subfile.h . Without the nobase_ prefix nobase_ it ends as ${pkgincludedir}/subfile.h .

+9
source

Source: https://habr.com/ru/post/903984/


All Articles