Re: [CMake] add_custom_command and variable arguments

2015-06-09 Thread Nils Gladitz
On 06/09/2015 01:40 PM, Roman Savchenko wrote: I whant to add custom command in such way: add_custom_target(my_target) add_custom_command(TARGET my_target POST_BUILD COMMAND script ${LIST}) set(LIST "") function(add_to_target source) add_executable(source ${source}) add_dependency(my

[CMake] add_custom_command and variable arguments

2015-06-09 Thread Roman Savchenko
HI All, I whant to add custom command in such way: add_custom_target(my_target) add_custom_command(TARGET my_target POST_BUILD COMMAND script ${LIST}) set(LIST "") function(add_to_target source) add_executable(source ${source}) add_dependency(my_target ${source}) list(APPEND LIST ${