Add copy_directory_if_different to match copy_if_different
cmake -E
offers copy_if_different
to allow for copying only modified files, but this requires an explicit list of input files.
It would be great to have copy_directory_if_different
to allow projects to easily copy all files inside a directory that have changed without having to capture the contents of the directory ahead of time. This should significantly reduce complexity of projects where projects need to launch cmake to capture the current file listing, and subsequently launch cmake -E
for the copy