CetCopy¶
Module defining the function cet_copy() to copy a file or files
to a destination directory as part of the build.
- cet_copy¶
Copy one or more files as part of the build process (defining a target).
cet_copy(<source> DESTINATION <dir> common options single-source options) cet_copy(<sources>... DESTINATION <dir> common options)
Changed in version 3.23.00: Use of single-source options for multiple sources is an error.
Options¶
DESTINATION <directory>The destination directory. If relative, the destination shall be calculated relative to
CMAKE_CURRENT_BINARY_DIR
Common options¶
DEPENDENCIES <dep>...If
<dep>changes,<sources>shall be considered out-of-date (<source>is always a dependency of its corresponding copy command).NO_ALLDo not add the generated target as a dependency of the
alltarget.PROGRAMSCopied files should be made executable at their destination.
WORKING_DIRECTORY <dir>Specify the working directory for the copy command (default
CMAKE_CURRENT_BINARY_DIR).
Single-source options¶
NAME <name>New name for the file in its final destination.
NAME_AS_TARGETIf specified, the target name will be the basename of the destination file; otherwise it will be formed by calculating the destination path relative to
CETMODULES_CURRENT_PROJECT_BINARY_DIRand replacing path separators with_.TARGET_VAR <var>Return the calculated target name as
<var>.
Cetmodules