summaryrefslogtreecommitdiffstats
path: root/cmakemodules/MacroAdditionalCleanFiles.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmakemodules/MacroAdditionalCleanFiles.cmake')
-rw-r--r--cmakemodules/MacroAdditionalCleanFiles.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmakemodules/MacroAdditionalCleanFiles.cmake b/cmakemodules/MacroAdditionalCleanFiles.cmake
new file mode 100644
index 0000000..593182f
--- /dev/null
+++ b/cmakemodules/MacroAdditionalCleanFiles.cmake
@@ -0,0 +1,21 @@
+# - MACRO_ADDITIONAL_CLEAN_FILES(files...)
+# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
+
+# Copyright (c) 2006, Alexander Neundorf, <[email protected]>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+
+MACRO (MACRO_ADDITIONAL_CLEAN_FILES)
+ GET_DIRECTORY_PROPERTY(_tmp_DIR_PROPS ADDITIONAL_MAKE_CLEAN_FILES )
+
+ if (_tmp_DIR_PROPS)
+ set(_tmp_DIR_PROPS ${_tmp_DIR_PROPS} ${ARGN})
+ else (_tmp_DIR_PROPS)
+ set(_tmp_DIR_PROPS ${ARGN})
+ endif (_tmp_DIR_PROPS)
+
+ SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${_tmp_DIR_PROPS}")
+ENDMACRO (MACRO_ADDITIONAL_CLEAN_FILES)
+