lirios / cmake-shared

:book: Shared CMake functions and macros
Other
8 stars 7 forks source link

LiriAddModule: autogenerate private headers list #13

Closed plfiorini closed 3 years ago

plfiorini commented 3 years ago

We want to make it easier to create modules: since private headers are already in the SOURCES list we should be clever and figure out automatically which headers are private.

The rule is simple: those that match this regular expression _p.h$ are private headers.

Of course, we let users manually specify the private headers list with PRIVATE_HEADERS if they wish.