From 8da037b9c177dc8055725beac87841f10d4ae80f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 8 Feb 2006 20:34:09 +0000 Subject: -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 --- modules/MacroAddFileDependencies.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/MacroAddFileDependencies.cmake (limited to 'modules/MacroAddFileDependencies.cmake') diff --git a/modules/MacroAddFileDependencies.cmake b/modules/MacroAddFileDependencies.cmake new file mode 100644 index 00000000..e263c6b8 --- /dev/null +++ b/modules/MacroAddFileDependencies.cmake @@ -0,0 +1,15 @@ +# - MACRO_ADD_FILE_DEPENDENCIES(<_file> depend_files...) +# MACRO_OPTIONAL_FIND_PACKAGE( [QUIT] ) + +MACRO(MACRO_ADD_FILE_DEPENDENCIES _file) + + GET_SOURCE_FILE_PROPERTY(_deps ${_file} OBJECT_DEPENDS) + IF (_deps) + SET(_deps ${_deps} ${ARGN}) + ELSE (_deps) + SET(_deps ${ARGN}) + ENDIF (_deps) + + SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}") + +ENDMACRO(MACRO_ADD_FILE_DEPENDENCIES) -- cgit v1.2.1