Commit 375a2d3a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

wrapping: support creating hierarchy files independently

ParaView's ClientServer wrappings need the hierarchy files and VTK
doesn't know to check for it. Allow ParaView to get the hierarchy files.

Also attach the file to a target so that it is always generated as well.
parent b5984fef
...@@ -166,5 +166,8 @@ $<$<BOOL:$<TARGET_PROPERTY:${module_name},INCLUDE_DIRECTORIES>>: ...@@ -166,5 +166,8 @@ $<$<BOOL:$<TARGET_PROPERTY:${module_name},INCLUDE_DIRECTORIES>>:
${INPUT_FILES} ${INPUT_FILES}
VERBATIM VERBATIM
) )
add_custom_target(${module_name}Hierarchy
DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.stamp.txt)
endmacro() endmacro()
...@@ -20,7 +20,7 @@ include(vtkWrapHierarchy) ...@@ -20,7 +20,7 @@ include(vtkWrapHierarchy)
function(vtk_add_wrapping module_name module_srcs module_hdrs) function(vtk_add_wrapping module_name module_srcs module_hdrs)
if(NOT ${module_name}_EXCLUDE_FROM_WRAPPING) if(NOT ${module_name}_EXCLUDE_FROM_WRAPPING)
set(_wrap_module FALSE) set(_wrap_module FALSE)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA) if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA OR VTK_WRAP_HIERARCHY)
set(_wrap_module TRUE) set(_wrap_module TRUE)
endif() endif()
......
...@@ -493,7 +493,9 @@ else() ...@@ -493,7 +493,9 @@ else()
FORCE) FORCE)
endif() endif()
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA) option(VTK_WRAP_HIERARCHY "Create wrap hierarchy even if languages are disabled." OFF)
mark_as_advanced(VTK_WRAP_HIERARCHY)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA OR VTK_WRAP_HIERARCHY)
set(VTK_WRAP_HIERARCHY_EXE vtkWrapHierarchy) set(VTK_WRAP_HIERARCHY_EXE vtkWrapHierarchy)
endif() endif()
......
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