John Lamp's excellent intro to CMake with GMock http://johnlamp.net/cmake-tutorial.html