admin管理员组文章数量:1026645
if I add a number of sources to a target, ie:
target_sources( ${TARGET_NAME_ELF} .. list of about 100 source files ... )
How can I get the list of source files added to that ELF?
I need to write that list to a file so that I can do other processing on the source files and that needs to be done external to CMAKE
sort of like:
file( WRITE SOMEFILE.txt get_target_sources( ${TARGET_NAME_ELF} ) )
if I add a number of sources to a target, ie:
target_sources( ${TARGET_NAME_ELF} .. list of about 100 source files ... )
How can I get the list of source files added to that ELF?
I need to write that list to a file so that I can do other processing on the source files and that needs to be done external to CMAKE
sort of like:
file( WRITE SOMEFILE.txt get_target_sources( ${TARGET_NAME_ELF} ) )
本文标签: CMAKEget list of all files added via quottargetsources()quotStack Overflow
版权声明:本文标题:cmake, get list of all files added via "target_sources()" - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1741462860a1870277.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论