admin管理员组

文章数量:1289543

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