title: Compile a single file under CMake project?
body: <p>I'm developing a C++ project which is going to be enclosed on a bigger one.</p>
  
  <p>I've seen that on the bigger project (is a Qt application and it's being generated from qmake) I am able to compile a single file from the linux command line, just entering the relative path to the specific file as an argument to make.</p>
  
  <p>On the other hand, I'm using CMake for my own project. When I modify some code for a compilation unit and I have to modify its header file, I have to wait a long time to compile its dependencies and then its own source file. But there are some situations in which I would prefer to check whether the source code in the *.cc file is compilable without errors.</p>
  
  <p>Is there a way to generate a Makefile from CMake the way qmake does this? Switching to qmake is not an option anymore.</p>