diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-03-20 17:29:56 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-03-20 17:29:56 (GMT) |
commit | a980fdc96a07bc469e77b37067dc76020d6e02f9 (patch) | |
tree | 4acee24b963a388662d1cb426abd5ea5bc8e72d7 /Modules/AddFileDependencies.cmake | |
parent | cfe124500f0c6ac4341ceb8e04c7593a0dc9335b (diff) | |
download | CMake-a980fdc96a07bc469e77b37067dc76020d6e02f9.zip CMake-a980fdc96a07bc469e77b37067dc76020d6e02f9.tar.gz CMake-a980fdc96a07bc469e77b37067dc76020d6e02f9.tar.bz2 |
BUG: don't include MacroLibrary.cmake, but add a cmake module which implements ADD_FILE_DEPENDENCIES()
ENH: mark the variables from FindPNG.cmake as advanced
Alex
Diffstat (limited to 'Modules/AddFileDependencies.cmake')
-rw-r--r-- | Modules/AddFileDependencies.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/AddFileDependencies.cmake b/Modules/AddFileDependencies.cmake new file mode 100644 index 0000000..0ea6470 --- /dev/null +++ b/Modules/AddFileDependencies.cmake @@ -0,0 +1,16 @@ +# - ADD_FILE_DEPENDENCIES(source_file depend_files...) +# Adds the given files as dependencies to source_file +# + +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(ADD_FILE_DEPENDENCIES) |