该文档详细介绍了cmake的file命令的各种模式以及具体用法,文档目录如下:
概要
1. 读(Reading)
1.1 READ
1.2 STRINGS
1.3 HASH
1.4 TIMESTAMP
1.5 GET_RUNTIME_DEPENDENCIES
2. 写(Writing)
2.1 WRITE和APPEND
2.2 TOUCH和TOUCH_NOCREATE
2.3 GENERATE
2.4 CONFIGURE
3. 文件系统(Filesystem)
3.1 GLOB和GLOB_RECURSE
3.2 MAKE_DIRECTORY
3.3 REMOVE 和REMOVE_RECURSE
3.4 RENAME
3.5 COPY_FILE
3.6 COPY和INSTALL
3.7 SIZE
3.8 READ_SYMLINK
3.9 CREATE_LINK
3.10 CHMOD
4. 路径转换(Path Conversion)
4.1 REAL_PATH
4.2 RELATIVE_PATH
4.3 TO_CMAKE_PATH 和TO_NATIVE_PATH
5. 传输(Transfer)
5.1 DOWNLOAD和UPLOAD
6. 锁(Locking)
7. 归档(Archiving)
7.1 ARCHIVE_CREATE
7.2 ARCHIVE_EXTRACT
由于内容太多,文档已上传:cmake之file命令:文件处理命令