[vtkusers] VTK 4.0 Local?

Sebastien BARRE sebastien at barre.nom.fr
Sat Nov 17 13:19:35 EST 2001


At 11/17/01 12:59 PM, Christopher R. Volpe wrote:
>I had to do more than this. First of all, in my LocalUserOptions.cmake file
>I had to do a:
>         INCLUDE_DIRECTORIES(${VTK_SOURCE_DIR}/Local)
>otherwise DevStudio couldn't find any of my classes' header files.
>
>Then, although it would build, my classes wouldn't be available in wish
>after doing a "package require vtk". So I had to go into the Wrapping/TCL
>folder, create a folder called vtklocal. In vtklocal I made a pkgIndex.tcl
>file, which looked like this:
>
>package ifneeded vtklocal 4.0 [list source [file join $dir vtklocal.tcl]]
>
>Then I created, also in the same folder, a vtklocal.tcl file that looked
>like this:
>
>if {[info commands vtkSoundData] != "" ||
>     [::vtk::load_component vtkLocalTCL] == ""} {
>     package provide vtklocal 4.0
>}
>
>Once I did that, everything worked the way it was supposed to.

Sure. The LocalUserOptions.cmake is to make CMake aware of your C++ 
classes, but at this point this wont' do anything for the Tcl or Python 
side, which has to be done manually. But you figured it out correctly.




More information about the vtkusers mailing list