[CMake] Passing back list of files from Function
Michael Jackson
mike.jackson at bluequartz.net
Fri May 11 14:00:12 EDT 2012
I have a function where I am generating a number of files and I need to pass that list of files back to the original calling cmake command/file/scope. How would I go about that?
function(create_files)
set(options)
set(multiValueArgs GENERATED_HEADERS)
cmake_parse_arguments( WIG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
foreach (....)
.. Generate some files
endforeach()
??
endfunction()
set(headers "")
create_files (GENERATED_HEADERS headers)
Could someone help me fill in the blanks? Thanks
---
Mike Jackson www.bluequartz.net
More information about the CMake
mailing list