Re: [CMake] Add lots of commands

2008-03-04 Thread David Cole
You could do this: (I haven't tried, but it should work unless you have a bunch of fancy stuff in ${entry} that will need escaping...) SET(commands "") FOREACH(entry ${entries}) SET(commands ${commands} COMMAND ${entry} ) ENDFOREACH(entry) ADD_CUSTOM_COMMAND(TARGET POST_BUILD ${

Re: [CMake] Add lots of commands

2008-03-03 Thread Brandon Van Every
On Mon, Mar 3, 2008 at 11:24 AM, Robert Bielik <[EMAIL PROTECTED]> wrote: > In ADD_CUSTOM_COMMAND(TARGET POST_BUILD > COMMAND cmd1 args1 > [COMMAND cmd2 args2] > ) > > I'd need to be able to add as many commands as are in a list, sort of like: > > In ADD_CUSTOM_COMMAND(TARGET

[CMake] Add lots of commands

2008-03-03 Thread Robert Bielik
In ADD_CUSTOM_COMMAND(TARGET POST_BUILD COMMAND cmd1 args1 [COMMAND cmd2 args2] ) I'd need to be able to add as many commands as are in a list, sort of like: In ADD_CUSTOM_COMMAND(TARGET POST_BUILD FOREACH(entry) COMMAND ${entry} ENDFOREACH(entry) ) Is it possible to achie