[CMake] Using Macro function like

Ken Martin ken.martin at kitware.com
Mon Dec 3 15:32:22 EST 2007


> C2ADA(${LIST_OF_FILES} ADS)

You want

C2ASA("${LIST_OF_FILES}" ADS)

then your macro will receive two arguments, the first of which is a list.
Teh in yoru macro you can use foreach to traverse the first argument. VTK
uses this approach for the wrap tcl macro.

Ken



More information about the CMake mailing list