Commit 343f010b authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

ENH: export the WRAP_SPECIAL property of classes

parent 6707ef95
......@@ -9,6 +9,7 @@ MACRO(VTK_EXPORT_KIT2 kit ukit dest_dir sources)
SET(KIT_CLASS_LIST)
SET(KIT_ABSTRACT_LIST)
SET(KIT_EXCLUDE_LIST)
SET(KIT_SPECIAL_LIST)
FOREACH(src ${sources})
# Get the class name from the full file name. All class headers
# will be installed to the same directory for this kit in the
......@@ -23,6 +24,10 @@ MACRO(VTK_EXPORT_KIT2 kit ukit dest_dir sources)
IF(IS_EXCLUDE MATCHES "^1$")
SET(KIT_EXCLUDE_LIST "${KIT_EXCLUDE_LIST}\n \"${CLASS}\"")
ENDIF(IS_EXCLUDE MATCHES "^1$")
GET_SOURCE_FILE_PROPERTY(IS_SPECIAL ${src} WRAP_SPECIAL)
IF(IS_SPECIAL MATCHES "^1$")
SET(KIT_SPECIAL_LIST "${KIT_SPECIAL_LIST}\n \"${CLASS}\"")
ENDIF(IS_SPECIAL MATCHES "^1$")
ENDFOREACH(src)
CONFIGURE_FILE(${VTK_CMAKE_DIR}/vtkKit.cmake.in
${dest_dir}/InstallOnly/vtk${kit}Kit.cmake
......
......@@ -10,6 +10,9 @@ SET(VTK_@VTK_EXPORT_UKIT@_CLASSES_ABSTRACT@KIT_ABSTRACT_LIST@)
# Wrap-exclude classes in vtk@VTK_EXPORT_KIT@.
SET(VTK_@VTK_EXPORT_UKIT@_CLASSES_WRAP_EXCLUDE@KIT_EXCLUDE_LIST@)
# Wrap-special classes in vtk@VTK_EXPORT_KIT@.
SET(VTK_@VTK_EXPORT_UKIT@_CLASSES_WRAP_SPECIAL@KIT_SPECIAL_LIST@)
# Set convenient variables to test each class.
FOREACH(class ${VTK_@VTK_EXPORT_UKIT@_CLASSES})
SET(VTK_CLASS_EXISTS_${class} 1)
......@@ -20,3 +23,6 @@ ENDFOREACH(class)
FOREACH(class ${VTK_@VTK_EXPORT_UKIT@_CLASSES_WRAP_EXCLUDE})
SET(VTK_CLASS_WRAP_EXCLUDE_${class} 1)
ENDFOREACH(class)
FOREACH(class ${VTK_@VTK_EXPORT_UKIT@_CLASSES_WRAP_SPECIAL})
SET(VTK_CLASS_WRAP_SPECIAL_${class} 1)
ENDFOREACH(class)
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