Thank for the reply. I do not know anything about CMake so what do you mean "Instead of naming vtk libraries , use ${VTK_LIBRARIES}"? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html