[CMake] Re: 'make dist' like target

Hendrik Sattler post at hendrik-sattler.de
Sun Jul 15 13:05:34 EDT 2007


Am Sonntag 15 Juli 2007 18:53 schrieb Alan W. Irwin:
> Ideally, what I would like is CPACK_SOURCE_SELECT_FILES (or whatever you
> want to call it) takes precedence over CPACK_SOURCE_IGNORE_FILES, but if a
> part of the source tree is mentioned by neither it gets packed into the
> source distribution by default.  With that scheme I could set, e.g.,
>
> set(CPACK_SOURCE_SELECT_FILES "x\\\\.pdf$")
> set(CPACK_SOURCE_IGNORE_FILES "\\\\.pdf$")
>
> to conveniently select x.pdf and the remaining non-pdf part of the source
> tree to be included in the source distribution while excluding all other
> pdfs from that distribution. Without the CPACK_SOURCE_SELECT_FILES facility
> I have to name _every_ separate pdf file I want to exclude from the source
> tree.

Doesn't this field contain a regular expression list? This would be the way to 
go.

HS


More information about the CMake mailing list