ccmake automatically configure and generate
<p>I've got a C++ project that uses cmake, and I'm trying to automate its build, but having to call the following puts me into a curses-style UI where I have press the 'C' key twice to configure and then 'G' to generate the Makefile:</p>

<pre><code>$ ccmake .
</code></pre>

<p>Is there a way to configure and generate from the <em>CMakeLists.txt</em> file without the human input?</p>