cmake函数 file


file文件操作命令


目录

Reading:读文件

file(READ [...])
file(STRINGS [...])
file()
file(TIMESTAMP [...])
file(GET_RUNTIME_DEPENDENCIES [...])

Writing:写文件

file({WRITE | APPEND} ...)
file({TOUCH | TOUCH_NOCREATE} [...])
file(GENERATE OUTPUT [...])

Filesystem:文件系统操作

file({GLOB | GLOB_RECURSE} [...] [...])
file(RENAME )
file({REMOVE | REMOVE_RECURSE } [...])
file(MAKE_DIRECTORY [

...])
file({COPY | INSTALL} ... DESTINATION [...])
file(SIZE )
file(READ_SYMLINK )
file(CREATE_LINK [...])

Path Conversion:路径转换

file(RELATIVE_PATH )
file({TO_CMAKE_PATH | TO_NATIVE_PATH} )

Transfer:下载与上传

file(DOWNLOAD [...])
file(UPLOAD [...])

Locking:同步锁

file(LOCK [...])

上一篇:CMake语法—流程控制(if-foreach-while)


下一篇:CMake应用:生成器表达式