[CMake] Add lots of commands

Robert Bielik robert.bielik at xponaut.se
Mon Mar 3 11:24:56 EST 2008


In ADD_CUSTOM_COMMAND(TARGET xxxx 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 xxxx POST_BUILD
FOREACH(entry)
     COMMAND ${entry}
ENDFOREACH(entry)
)

Is it possible to achieve this is some way?

TIA
/R




More information about the CMake mailing list