properly compute width of containing block of inline elements
[kdelibs.git] / cmake / modules / MacroAddFileDependencies.cmake
blob9e5536072ca8bdaa2fc481f58c2d1a32311a1f0d
1 # MACRO_ADD_FILE_DEPENDENCIES(<_file> depend_files...)
3 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
5 # Redistribution and use is allowed according to the terms of the BSD license.
6 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
9 MACRO (MACRO_ADD_FILE_DEPENDENCIES _file)
11    GET_SOURCE_FILE_PROPERTY(_deps ${_file} OBJECT_DEPENDS)
12    if (_deps)
13       set(_deps ${_deps} ${ARGN})
14    else (_deps)
15       set(_deps ${ARGN})
16    endif (_deps)
18    SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}")
20 ENDMACRO (MACRO_ADD_FILE_DEPENDENCIES)