mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
16
Modules/AddFileDependencies.cmake
Normal file
16
Modules/AddFileDependencies.cmake
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user