cmake -E copy: Add support for -t argument

Fixes: #23543
7 files changed