Allow either file globbing patterns or a custom_command to be added to the "clean" target
I would like to be able to either use a file globbing pattern or register a custom_command
to be run as part of the clean
target.
Rationale:
As part of our build process, binaries are installed to a certain location tagged with information relating to the state of the repository at the time they are built.
Note this information changes between builds, without the cmake configuration step needing to be re-run.
For example, if a file has edits which haven't been committed to the repo, we tag the binary as being "dirty", as with the repo in its current state, we will not be able to rebuild said binary.
Given these tags change between builds, at the moment I cannot add them to the clean target.
File globbing patterns currently don't work with ADDITIONAL_MAKE_CLEAN_FILES
.
Being able to run a script or glob for files to be cleaned would solve my problem.