title: How to make cmake script for ecpg and qt project?
body: <p>How to make cmake build script for project that use ecpg code generation and qt moc compiler?</p>
  
  <p>Also how to add code generation in cmake (which is easy in make)?</p>