ADDITIONAL_CLEAN_FILES

在 3.15 版被加入.

A ;-list of files or directories that will be removed as a part of the global clean target. It is useful for specifying generated files or directories that are used by multiple targets or by CMake itself, or that are generated in ways which cannot be captured as outputs or byproducts of custom commands.

If an additional clean file is specific to a single target only, then the ADDITIONAL_CLEAN_FILES target property would usually be a better choice than this directory property.

Relative paths are allowed and are interpreted relative to the current binary directory.

ADDITIONAL_CLEAN_FILES 的內容可以使用生成器表達式

該屬性只對 Ninja 和 Makefile 生成器有效。其他生成器會忽略它。