CMake... ccmake or cmake?

Viewed 43238

What is the difference between cmake and ccmake? I have the Ubuntu package cmake installed, and on my Windows computer, I have the installer from the website, but neither have the command ccmake available. Yet, the tutorials, seem to reference it quite regularly.

It seems that ccmake on Unix is CMakeSetup on Windows (which is the setup program). But I'm a little confused about it; is it just an alternative to manually typing your own CMakeLists.txt files?

5 Answers

Both are interactive dialogues for CMake (as opposed to primarily-command-line tools).

Quoting from the documentation for ccmake:

The [ccmake] executable is the CMake curses interface. Project configuration settings may be specified interactively through this GUI. Brief instructions are provided at the bottom of the terminal when the program is running.

Quoting from DLRdave's answer to a question about running CMakeSetup:

CMakeSetup is an older program that no longer builds with the most recent releases of CMake. Use "cmake-gui" instead of "CMakeSetup"...

Quoting from the documentation for cmake-gui:

The cmake-gui executable is the CMake GUI. Project configuration settings may be specified interactively. Brief instructions are provided at the bottom of the window when the program is running.

ccmake is the curses (terminal handling library) interface to CMake.

cmake is the CLI (Command Line Interface)

sudo apt-get install cmake-curses-gui

ccmake :
It is teminal based GUI to edit the default options or paths in CMakeLists.txt.
Usage:
After you have generated configure files using cmake .. in build folder. Then do ccmake .. , to see all the options and paths which can be be modified by pressing Enter for editing. After editing press c again to configure. This will save the files in build folder with your edited settings. Then do make -j4 , for building the MakeFile.

Related