[vtk-developers] And one include to rule them all

David Thompson david.thompson at kitware.com
Sat Sep 1 16:35:00 EDT 2012


Hi Marcus (et al.),

We had talked about simplifying the list of include directives VTK 6 passes to the compiler. Attached is a ReadMe and a couple of Python scripts to walk through the VTK source tree and change all the include directives in the source so they contain the kit name. For example:

    #include "vtkDataArray.h"

would get modified to

    #include "Common/Core/vtkDataArray.h"

The ReadMe goes into a little more detail. I haven't tried altering CMakeLists.txt to change the list of include directives passed to the compiler yet (much less tried compiling), but figured people might have comments on things so far.

The map that the first script builds should also be usable for external projects that include VTK.

	David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk6-header-fix
Type: application/octet-stream
Size: 5232 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120901/797b037b/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ReadMe.mkd
Type: application/octet-stream
Size: 1708 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120901/797b037b/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk6-header-map
Type: application/octet-stream
Size: 3571 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120901/797b037b/attachment-0005.obj>


More information about the vtk-developers mailing list