文件操作 - GNUtoMS_lib.cmake
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/cmake/Modules/Platform/GNUtoMS_lib.cmake
编辑文件内容
# Usage: cmake -Dlib=lib.bat -Ddef=out.def -Ddll=out.dll -Dimp=out.dll.a -P GNUtoMS_lib.cmake get_filename_component(name ${dll} NAME) # .dll file name string(REGEX REPLACE "\\.dll\\.a$" ".lib" out "${imp}") # .dll.a -> .lib execute_process( COMMAND ${lib} /def:${def} /name:${name} /out:${out} RESULT_VARIABLE res ) if(res) message(FATAL_ERROR "lib failed: ${res}") endif()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件