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)
13 set(_deps ${_deps} ${ARGN})
18 SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}")
20 ENDMACRO (MACRO_ADD_FILE_DEPENDENCIES)