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

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to