1 Star 0 Fork 11

Ayrz / libx-msg-im-xsc

forked from DEV5 / libx-msg-im-xsc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
__file__.cmake 535 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
xzwdev 提交于 2019-11-10 23:03 . dev5
function(redefine_file_macro targetname)
get_target_property(source_files "${targetname}" SOURCES)
foreach(sourcefile ${source_files})
get_property(defs SOURCE "${sourcefile}"
PROPERTY COMPILE_DEFINITIONS)
get_filename_component(filepath "${sourcefile}" ABSOLUTE)
string(REPLACE ${PROJECT_SOURCE_DIR}/ "" relpath ${filepath})
list(APPEND defs "__FILE__=\"${relpath}\"")
set_property(SOURCE "${sourcefile}" PROPERTY COMPILE_DEFINITIONS ${defs})
endforeach()
endfunction()
C++
1
https://gitee.com/ayrz2010/libx-msg-im-xsc.git
git@gitee.com:ayrz2010/libx-msg-im-xsc.git
ayrz2010
libx-msg-im-xsc
libx-msg-im-xsc
master

搜索帮助