Commit f84b6b1e authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

Add a new macro to compute depdendent include dirs

This adds a new piece to the API to compute all of the include
directories for the dependencies of a module. This is used by wrapping
largely, but may be useful in other places.

Change-Id: If0271f80c33bd436fe7dd50bd37e1c3aa9ab03f2
parent abf28433
......@@ -40,6 +40,17 @@ macro(vtk_module_load mod)
endif()
endmacro()
# vtk_module_dep_includes(<module>)
#
# Loads the <module>_DEPENDS_INCLUDE_DIRS variable.
macro(vtk_module_dep_includes mod)
vtk_module_load("${mod}")
vtk_module_config(_dep ${VTK_MODULE_${mod}_DEPENDS})
if(_dep_INCLUDE_DIRS)
set(${mod}_DEPENDS_INCLUDE_DIRS ${_dep_INCLUDE_DIRS})
endif()
endmacro()
# vtk_module_classes_load(<module>)
#
# Loads variables describing the given module:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment