aboutsummaryrefslogtreecommitdiff
path: root/modules/MacroAdditionalCleanFiles.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-02-08 20:34:09 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-02-08 20:34:09 +0000
commit8da037b9c177dc8055725beac87841f10d4ae80f (patch)
treecf40021a0b43b8ec85114b1254b1545cea762b7f /modules/MacroAdditionalCleanFiles.cmake
parent8ad0121573a771ded4fd6dccc754eb5cfd3661af (diff)
downloadextra-cmake-modules-8da037b9c177dc8055725beac87841f10d4ae80f.tar.gz
extra-cmake-modules-8da037b9c177dc8055725beac87841f10d4ae80f.tar.bz2
-remove macro_append_directory_properties() and add macro_additional_clean_files()
-remove macro_append_source_files_properties() and add macro_add_file_dependencies() -build kICE as a static library and link to it, instead of including the sources multiple times -remove the -kdemain=main from dcop/, hope this didn't break things on windows some patches from Brad King: -rename the target dcop (the executable) to dcop_executable, otherwise MS Visual Studio complains about multiple targets with the same name , the name of the created executable stays "dcop" -add the dependency of all dcop stubs and skels to dcopidl2cpp, to make sure it is compiled before this rule is executed Alex svn path=/trunk/KDE/kdelibs/; revision=507257
Diffstat (limited to 'modules/MacroAdditionalCleanFiles.cmake')
-rw-r--r--modules/MacroAdditionalCleanFiles.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/MacroAdditionalCleanFiles.cmake b/modules/MacroAdditionalCleanFiles.cmake
new file mode 100644
index 00000000..a3d930dc
--- /dev/null
+++ b/modules/MacroAdditionalCleanFiles.cmake
@@ -0,0 +1,15 @@
+# - MACRO_ADDITIONAL_CLEAN_FILES(files...)
+# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
+
+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)
+