[vtkusers] Using VTK with CMake: link errors

David Doria daviddoria+vtk at gmail.com
Tue Aug 10 16:59:43 EDT 2010


This is all that is typically needed:

PROJECT(Test)

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE(Test Test.cxx)
TARGET_LINK_LIBRARIES(Test vtkHybrid)

The meaning of those errors is pretty self explanatory, but I have no
idea how to fix it, sorry.

Thanks,

David



More information about the vtkusers mailing list