
It can be difficult to know when to stop the run cmake, edit the cache file cycle without the aid of an interface. This is because as you change options in the CMakeCache.txt file, cmake may add new entries to that file. For larger projects like VTK, using ccmake, cmake -i, or CMakeSetup is recommended. Using CMake to build a project in non-interactive mode is a simple process if the project does not have many options. The process stops when there are no longer any more questions to ask. This will cause cmake to ask you to enter a value for each value in the cache file for the project. To run in interactive mode, just pass the option “-i” to cmake.

From the command line, cmake can be run as an interactive question and answer session or as a non-interactive program.
