You are using the cmake command:
cmake ..
Instead use:
cmake -DVTK_DIR=/usr/local/include/vtk-9.1 ..
Adapt the path to the directory containing vtk-config.cmake
.
You are using the cmake command:
cmake ..
Instead use:
cmake -DVTK_DIR=/usr/local/include/vtk-9.1 ..
Adapt the path to the directory containing vtk-config.cmake
.