mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
12 lines
403 B
CMake
12 lines
403 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})
|
|
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${SRC} ${DST})
|
|
endfunction()
|