title: Is main.cpp required?
body: <p>I was trying to compile a program with <code>cmake</code>, and I ended up deleting my <code>main.cpp</code> file, which I had just compounded into another file which held the name of my project (i.e., I just cut and pasted the main function into that one). The problem is that I got a <code>main.cpp</code> not found error, and wasn't sure whether or not in <code>C++</code> a file known as <code>main.cpp</code> is required, or can I have a file with a different title which contains the function main instead? </p>
  
  <p><strong>Edit</strong>
  I should note that I <em>have</em> removed any specification to <code>main</code> and have recompiled this program.</p>