build libraries if vtkfound

build if vtk found