<div dir="ltr">Is there an analogous construct to ADDITIONAL_MAKE_CLEAN_FILES for Visual Studio projects? I poked around the CMake source tree and it seems to only be referenced in the makefile generator.<br><br>As part of a custom target I create some intermediate files that need to stick around, but I would like them removed when I clean the target. If I add the intermediate files as OUTPUT the files are cleaned by VS. However sometimes during the course of executing my command I may not generate one of the intermediate files. Because of this, VS thinks the build is not up to date and reruns the rule.<br>
<br>In the extreme I can add a custom target to delete the files, but I was wondering if there was a more elegant way.<br><br>BTW, can one add a custom_target to the "clean" target for both makefiles and VS?<br>
<br>Thanks,<br>James<br></div>