cmakes fantastic Configure file system will work. The files can have different names, but basically if it finds any variables that can be expanded by cmake like ${cmake_root_dir} or $ENV{localappdata}, it will edit the file, replace the variables with their values and save it to the new location under the new name. So if there are no variables it just copies.
If you have cmake style variables in there for whatever reason and you don't want them expanded, use @Only as it will only expand variables surrounded by "@":
cmakes fantastic Configure file system will work. The files can have different names, but basically if it finds any variables that can be expanded by cmake like ${cmake_root_dir} or $ENV{localappdata}, it will edit the file, replace the variables with their values and save it to the new location under the new name. So if there are no variables it just copies.
If you have cmake style variables in there for whatever reason and you don't want them expanded, use @Only as it will only expand variables surrounded by "@":