title: CMake + qtcreator + MinGW + Debug mode + Windows 7
body: <p>I use <code>CMake</code> with <code>VC++</code> under windows 7 and everything works fine. Now, I want to test <code>qtcreator</code> but I cannot force debug flags. I am using <code>MinGW</code> generator with cmake and adding <code>-DCMAKE_BUILD_TYPE=Debug</code> on the command line. </p>
  
  <p>I can use CMake feature from inside QTCreator to generate projects with <code>-DCMAKE_BUILD_TYPE=Debug</code>. It compiles just fine and I can run it. However, I cannot debug it as QTCreator complains it is not a "debuggable executale". I also tried generating the projects directly using the command line.</p>
  
  <p><strong>What am I doing wrong?</strong></p>