[Cmake] using make clean

Brad King brad . king at kitware . com
Wed, 26 Nov 2003 10:51:06 -0500 (EST)


On Wed, 26 Nov 2003, David Svoboda wrote:

> I have to following problem. I created a new custom command (as below) and
> therefore a new set of *.hh files was created from *.idl files. These *.hh
> files are used as header files in the next step. But I don't know, how to
> delete these *.hh files with "make clean" command. Is there any reasonable
> way?
>
>    ADD_CUSTOM_COMMAND(
>       OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${FNAME}.hh
>       DEPENDS ${IDL_FILE}
>       COMMAND ${IDL_PROGRAM}
>       ARGS -bcxx ${IDL_FILE}
>       )

I've just added a FAQ entry for this issue:

http://www . cmake . org/cgi-bin/cmakefaq . cgi?req=all#5 . 8

-Brad