最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cmake, get list of all files added via "target_sources()" - Stack Overflow

programmeradmin2浏览0评论

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} ) )
发布评论

评论列表(0)

  1. 暂无评论