How can I solve the error, Cannot build Rendering examples without VTK_SOURCE_DIR

It seems that that example is currently untested. It will need porting to VTK 9 before it is useful as-is.

VTKExamples which probably has examples which are working better. See this post.