title: How to integrate flex and bison with Qt project?
body: <p>I am making a GUI program using Qt4, under git source control (<a href="https://github.com/vinayak-garg/dic-sim" rel="nofollow">Github page</a>). Small part of project requires scanning and parsing. So I want to use flex and bison with the project. I can think of 3 ways-</p>
  
  <ol>
  <li>To keep flex and bison files out of project and source control. Generate the C source files and add it to project.</li>
  <li>Add flex and bison files to project, but run flex and bison commands separately.</li>
  <li>Integrate properly with IDE (Qt Creator on Ubuntu 12.04) and source control, so that when I build the flex and bison is called to generate lexer and parser.</li>
  </ol>
  
  <p>I obviously want third option, but have no idea how to do it.</p>
  
  <p>Please suggest the best option and the way to do it. Or there is any other way to do it?</p>
  
  <p>Note - I want the project to be cross platform, to build for Windows as well.</p>