You can run CMake either in an interactive or batch mode. For running in interactive mode, you first need to create a build directory and afterwards you can start the CMake graphical user interface (GUI) with the ccmake command.
[leonhard@euler01 koenigsberg_bridge_code]$ module load new gcc/4.8.2 cmake/3.5.2 [leonhard@euler01 koenigsberg_bridge_code]$ mkdir build [leonhard@euler01 koenigsberg_bridge_code]$ cd build [leonhard@euler01 build]$ ccmake ..
In the CMake GUI, you can perform several commands with keyboard short cuts
|t||toggle advanced mode (shows all available variables)|
|g||generate source code for compilation|
After successfully running the CMake GUI, you can compile the code with the command make