cmake -E: Add copy_if_newer and copy_directory_if_newer

Fixes: #24923
18 files changed