[Cmake] vtkRenderWindowInteractor::GetClassName

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue May 20 13:46:54 EDT 2003


Hum, the weird thing is that it compiles without no problem under Linux...
	Anyway here is what I use:

SET(SRCS_Sample
Sample/Sample.cpp
wxVTKRenderWindowInteractor.cxx
)

LINK_LIBRARIES(
    vtkCommon
    vtkGraphics
    vtkRendering
)


ADD_EXECUTABLE(Sample WIN32
                ${SRCS_Sample})

TARGET_LINK_LIBRARIES(Sample ${WXWINDOWS_LIBRARY})

What am doing wrong ?

Thanks,
mathieu

Bill Hoffman wrote:
> It means you are not linking the library that contains
> vtkRenderWindowInteractor::GetClassName into Sample_gtk.exe.
> I guess you would have to give more information about
> your CMakeLists.txt files.   Have you looked the
> cmakelist files in VTK/Examples/Tutorial?
> 
> -Bill
> 
> 




More information about the CMake mailing list