This doesn't work out of the box for me on Ubuntu 18.04 but the
libncurses5-dev is a prerequisite library.
As said on SO there; I fixed it by running
cmake-gui (the one previously installed without ccmake) in the sources directory of cmake itself (sounds strange but worked like a charm).
Then, I looked for
BUILD_CursesDialog (as suggested in this thread ) in cmake-gui.
This option wasn't checked, so I checked it.
make -j4 &
$ sudo checkinstall (I previously used
$ sudo dpkg -r cmake to properly remove cmake).
$ which cmake
$ which cmake-gui
$ which ccmake
$ cmake --version
cmake version 3.13.20181205-gf92e9
$ cmake-gui --version
ccmake-gui version 3.13.20181205-gf92e9
$ ccmake --version
ccmake version 3.13.20181205-gf92e9