title: How compile only c with cmake?
body: <p>I have a c code that I insist on compile it with gcc not any c++ compiler!
  I want a CMakeLists.txt for it!
  Could you help me?
  Here is my simple project:</p>
  
  <pre><code>main.c
  </code></pre>