file — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpFor a simple file copying operation, the file(COPY_FILE) sub-command just above may be easier to use. The COPY signature copies files, directories, and symlinks to a destination folder. Relative input paths are evaluated with respect to the current source directory, and a relative destination is evaluated with respect to the current build directory.
CMake
https://cmake.org/Bug/view.php?id=157030015703: "cmake -E copy" support for multiple files: Description: The copy operation is not support wildcart (star "*") when the full path is specified. But it is working correctly with "remove. "cmake -E remove" is not consistent with "cmake -E copy". With using cmake shell comamnd you could add star to whole path: