diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-02-08 20:34:09 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-02-08 20:34:09 +0000 |
commit | 8da037b9c177dc8055725beac87841f10d4ae80f (patch) | |
tree | cf40021a0b43b8ec85114b1254b1545cea762b7f /modules/MacroAddFileDependencies.cmake | |
parent | 8ad0121573a771ded4fd6dccc754eb5cfd3661af (diff) | |
download | extra-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/MacroAddFileDependencies.cmake')
-rw-r--r-- | modules/MacroAddFileDependencies.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
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( <name> [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) |