[CMake] Question about add_custom_command

Ingolf Steinbach ingolf.steinbach at googlemail.com
Fri Sep 10 09:16:57 EDT 2010


2010/9/10 Michael Wild <themiwi at gmail.com>:
> set(SRCS a.c b.c d.c e.c)
>
> add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/f.c
>  COMMAND ...
>  DEPENDS ${SRCS}
>  COMMENT "Generating f.c"
>  VERBATIM)

Does this also create dependencies on the multitude of header files
included by the .c files in SRCS (which would probably be desired in
case of the OP)?

Ingolf


More information about the CMake mailing list