Thanks Tyler, that works indeed. It seems very obvious now actually. For
people reading this thread in the archive, the following works:
SET( sources s1.cpp s2.cpp s3.cpp )
SET( arguments -c1 2 )
LIST( APPEND arguments ${sources} )
ADD_CUSTOM_COMMAND( TARGET test
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 ""
Hello,
I'm trying to pass multiple arguments to a python script. The last arguments
are file names that are already in a cmake list (semicolon seperated
string).
Is it possible to pass the elements in this list to the python script as
separate arguments?
--
SET( sources s1.cpp s2.