[CMake] make clean intermediate files
Brad King
brad.king at kitware.com
Mon Aug 21 15:34:45 EDT 2006
James Bigler wrote:
> If I have a rule that generates some intermediate files, how do I add
> those files to the list that get removed when I do a "make clean"?
I'm assuming you're talking about intermediate files when building a
custom command. If they are listed as the OUTPUT of the custom command
they will be cleaned:
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/real_output.txt
${CMAKE_CURRENT_BINARY_DIR}/intermediate.txt
COMMAND ...
)
-Brad
More information about the CMake
mailing list