[vtkusers] Specifying VTK Path in CMakeLists.txt

David Doria daviddoria at gmail.com
Sat Apr 11 10:12:20 EDT 2009


Ok, I set VTK_DIR in my environment:

[doriad at davedesktop LandmarkTransform]$ echo $VTK_DIR
/home/doriad/bin/ParaView3/VTK

and then just used this in CMakeLists.txt
INCLUDE(${VTK_DIR}/UseVTK.cmake)

and it still gives me the same

------------
 CMake Error at CMakeLists.txt:43 (INCLUDE):
   include could not find load file:

     /UseVTK.cmake
------------

Thanks,

David


On Sat, Apr 11, 2009 at 10:07 AM, John Drescher <drescherjm at gmail.com>wrote:

> On Sat, Apr 11, 2009 at 9:53 AM, David Doria <daviddoria at gmail.com> wrote:
> > If I use this:
> > ---------------------------
> > FIND_PACKAGE(VTK REQUIRED)
> > INCLUDE(${VTK_USE_FILE})
> > ---------------------------
> >
> > CMake prompts me to enter the path to VTK and then everything works
> > properly. I thought I could specify the path in the CMakeLists.txt file
> like
> > this:
> >
>
> One way to get around the prompt is by setting VTK_DIR in your environment.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090411/fa792819/attachment.htm>


More information about the vtkusers mailing list