Two methods of cmake in VTK program

First, GUI mode
Install cmake, run cmak-gui. exe, set the source and build directory, as well as the directory where vtkData is located, figurate, generate. The related process is introduced in the network resources such as baidu library.
Two, command line mode (DOS command)
CmMakelist.txt. The DOS command cmake. Note that the parameter after cmake is the directory where cMakelists.txt is located, and the CPP and header files required are also in that directory.
Cmake is a tool to configure the project as per cmakelists.txt and then compile it in VS.

Read More: