[vtkusers] Accessing VTK_DATA_ROOT from C++

Tuhin Sinha tk.sinha at vanderbilt.edu
Mon Jul 7 15:03:47 EDT 2003


Thanks Glen,

  Yeah, I could see how one might assume that all the tests would be coming 
from the VTK directory tree.  However, I'm writing many of my own modules 
outside of the VTK tree.  Furthermore, I'm trying to adopt testing paradigm 
outlined by VTK for my modules using the data in VTKData.  I'll go ahead and 
submit a bug/feature report for this and see what happens.

Best regards,

Tuhin Sinha

On Monday 07 July 2003 14:01, you wrote:
> Hi Tuhin,
>
> I'll let those who setup the testing process reply to the users list on
> this one.  But, yeah, there's no reason it couldn't be done this way.  I
> guess it's never really been deemed necessary before, since the tests
> and examples are located on the same level.
>
> Sorry I couldn't be of more help,
> Glen
>
> Tuhin Sinha wrote:
> >Let me append some more information to this.  After inspecting the
> >vtkTestUtilities.h file, I noticed that the default VTK_DATA_ROOT is hard
> >coded into the file.  This file is not generated dynamically, so the
> > default root has been specified by someone at Kitware.  Shouldn't the
> > default value be replaced with the value specified by the user during the
> > CMake generation process?  That is, should there be a
> > vtkTestUtilities.h.in and a
> >CONFIGURE_FILE command in the associated CMakeLists.txt file?
> >
> >Thanks for your time.
> >
> >Tuhin Sinha
> >
> >On Monday 07 July 2003 13:24, Tuhin Sinha wrote:
> >>Thanks Glen,
> >>
> >>  The files you highlighted had what I needed.  I have another "quick"
> >>question related to this subject... using CMAKE I pointed the build
> >> process at the absolute path containing my VTKData.  However, CMAKE
> >> changed the absolute path to a relative path (making the assumption that
> >> you want to use VTKData from four levels deep in the VTK directory
> >> structure).  Is this the standard operating procedure for VTK/Cmake? 
> >> How can I force CMake to use the absolute path?  Thanks again for your
> >> help.
> >>
> >>Tuhin Sinha
> >>
> >>On Monday 07 July 2003 12:27, Glen Lehmann wrote:
> >>>Hi Tuhin,
> >>>
> >>>You can have a look at Common/Testing/Cxx/vtkTestUtilities.cxx and an
> >>>example of its usage in Imaging/Testing/Cxx/ImportExport.cxx.
> >>>
> >>>Good luck,
> >>>Glen
> >>>
> >>>Tuhin Sinha wrote:
> >>>>Hello users,
> >>>>
> >>>>	Does anyone know how to get access to the VTK_DATA_ROOT setting from a
> >>>>C++ source file.  I expected to find it in "vtkConfigure.h", but it
> >>>>wasn't there. If it isn't accessible somewhere already, can it be added
> >>>>to vtkConfigure.h? Thanks for your time.
> >>>>
> >>>>Tuhin Sinha
> >>>>
> >>>>_______________________________________________
> >>>>This is the private VTK discussion list.
> >>>>Please keep messages on-topic. Check the FAQ at:
> >>>><http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> >>>>subscribe/unsubscribe:
> >>>>http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>_______________________________________________
> >>This is the private VTK discussion list.
> >>Please keep messages on-topic. Check the FAQ at:
> >><http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> >>subscribe/unsubscribe:
> >>http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> > <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> > subscribe/unsubscribe:
> >http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list