[CMake] Passing multiple arguments to add_custom_command
Tyler Roscoe
tyler at cryptio.net
Mon Jun 1 16:47:48 EDT 2009
On Mon, Jun 01, 2009 at 04:31:33PM -0400, Iman Brouwer wrote:
> #Add the source files
> FOREACH( cpp ${sources } )
> SET( arguments "${arguments} ${cpp}" )
> ENDFOREACH( cpp )
> add_custom_command( TARGET test COMMAND "script.py" "${arguments}" )
I think that will work if you get rid of the "" around ${arguments}.
You also might want to look at the VERBATIM parameter to
add_custom_command().
tyler
More information about the CMake
mailing list