cmake's bootstrap script generates a Makefile that will also build ccmake if (as s.k. points out) the boolean variable BUILD_CursesDialog is set.
To decide the truth value of BUILD_CursesDialog, the bootstrap script tries compiling a simple ncurses program. If the compilation of the ncurses program fails, the BUILD_CursesDialog variable is unset. If libncurses5-dev is installed, the ncurses program builds and thus, the Makefile generated for cmake upon bootstrap also has instructions to build ccmake.
With this understanding of the current build process, the sequence of steps listed by augre are to be followed. Additionally, remember to also clean any temporary build files first (coming from a similar experience, I believe this is what s.k. did not do, and found an admirable :) hack to work around).
Thus, for me, running off git, the process is:
Replicate augre's solution:
- install libncurses5-dev
- Reconfigure/compile/install cmake
- Potentially restart terminal