cmake -E
CMake provides builtin command-line tools through the signature
Subcommands
Name | Description |
---|---|
capabilities | Report cmake capabilities in JSON format. The output is a JSON object with the following keys |
cat | Concatenate files and print on the standard output |
chdir | Change the current working directory and run a command |
compare_files | Check if file1 is the same as file2. If fails are the same, then returns 0, if not returns 1. In case of invalid arguments, it returns 2 |
copy | Copy files to <destination> (either file or directory). If multiple files are specified, the <destination> must be directory and it must exist. Wildcards are not supported. copy does follow symlinks. That means it does not copy symlinks, but the files or directories it point to |
copy_directory | Copy content of <dir>... directories to <destination> directory. If <destination> directory does not exist it will be created. copy_directory does follow symlinks |
copy_if_different | Copy files to <destination> (either file or directory) if they have changed. If multiple files are specified, the <destination> must be directory and it must exist. copy_if_different does follow symlinks |
create_symlink | Create a symbolic link <new> naming <old> |
create_hardlink | Create a hard link <new> naming <old> |
echo | Displays arguments as text |
echo_append | Displays arguments as text but no new line |
env | Run command in a modified environment |
environment | Display the current environment variables |
false | Do nothing, with an exit code of 1 |
make_directory | Create <dir> directories. If necessary, create parent directories too. If a directory already exists it will be silently ignored |
md5sum | Create MD5 checksum of files in md5sum compatible format |
sha1sum | Create SHA1 checksum of files in sha1sum compatible format |
sha224sum | Create SHA224 checksum of files in sha224sum compatible format |
sha226sum | Create SHA226 checksum of files in sha226sum compatible format |
sha384sum | Create SHA384 checksum of files in sha384sum compatible format |
sha512sum | Create SHA512 checksum of files in sha512sum compatible format |
remove | Remove the file(s). The planned behavior was that if any of the listed files already do not exist, the command returns a non-zero exit code, but no message is logged |
remove_directory | Remove <dir> directories and their contents. If a directory does not exist it will be silently ignored. If <dir> is a symlink to a directory, just the symlink will be removed. Use rm instead |
rm | Remove the files <file> or directories dir |
server | Launch cmake-server(7) mode |
sleep | Sleep for given number of seconds |
tar | Create or extract a tar or zip archive |
time | Run command and display elapsed time |
touch | Creates <file> if file do not exist. If <file> exists, it is changing <file> access and modification times |
touch_nocreate | Touch a file if it exists but do not create it. If a file does not exist it will be silently ignored |
true | Do nothing, with an exit code of 0 |