mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[cmake] cleaning_configure_file
add a wrapper to automatically add generated files to clean target
This commit is contained in:
14
cmake/CleaningConfigureFile.cmake
Normal file
14
cmake/CleaningConfigureFile.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user