cfc37caeb8
add a wrapper to automatically add generated files to clean target
15 lines
386 B
CMake
15 lines
386 B
CMake
# Little helper that adds the generated file to the
|
|
# files to be cleaned in the current directory.
|
|
#
|
|
# Handy if the generated files might have changed
|
|
#
|
|
|
|
function(cleaning_configure_file SRC DST)
|
|
configure_file(${SRC} ${DST} ${ARGN})
|
|
set_property(
|
|
DIRECTORY
|
|
APPEND
|
|
PROPERTY ADDITIONAL_CLEAN_FILES ${DST}
|
|
)
|
|
endfunction()
|