title: Qt Creator Unit Test Project
body: <p>In Qt Creator, when I create a new Unit Test project it will not build successfully if the full path to the project contains a space.</p>
  
  <p>I've tracked the bug down to the makefile produced by qmake.  The makefile contains a line near the top like:</p>
  
  <pre><code>DEFINES = -DUNICODE -DWIN32 -DSRCDIR=\"C:/Users/Smith/Qt Projects/Unit_Tests/\" -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"C:/Users/Smith/Qt Projects/Debug_Unit_Tests\"
  </code></pre>
  
  <p>The quotes in the values for <code>SRCDIR</code> and <code>QT_TESTCASE_BUILDDIR</code> are escaped with backslashes.  If I delete the backslashes from <code>Makefile.Debug</code>, then the project will build successfully.</p>
  
  <p>Obviously, I don't want to have manually delete the backslashes every time.  I'd also like to avoid a custom build step that removes the backslashes.  Because qmake has so many options, I was hoping there was something I could just put in the <code>.pro</code> file that will fix this.</p>
  
  <p>I tried something like <code>DEFINES -= QT_TESTCASE_BUILDDIR</code>.  That doesn't work however because <code>QT_TESTCASE_BUILDDIR</code> is not yet defined.  <code>testlib</code> apparently adds its own definitions later.</p>
  
  <p>I am using:</p>
  
  <ul>
  <li>Visual Studio 2010 SP 1</li>
  <li>Qt 5.0.2</li>
  <li>Qt Creator 2.7.0</li>
  <li>Windows 7</li>
  </ul>
  
  <p>What's the simplest way to get rid of the backslashes?</p>
  
  <p><strong>Edit:</strong> This also happens OSX.</p>