title: Compiling Cuda code in Qt Creator on Windows
body: <p>I have been trying for days to get a Qt project file running on a 32-bit Windows 7 system, in which I want/need to include Cuda code. This combination of things is either so simple that no one ever bothered to put an example online, or so difficult that nobody ever succeeded, it seems. Whatever way, the only helpful forum threads I found were the same issue on Linux or Mac, or with Visual Studio on a Windows. 
  All of these give all sorts of different errors, however, whether due to linking or clashing libraries, or spaces in file names or non-existing folders in the Windows version of the Cuda SDK. 
  Is there someone who has a clear <code>.pro</code> file to offer that does the trick?</p>
  
  <p>I am aiming to compile a simple programme with ordinary C++ code in Qt style, with Qt 4.8 libraries, which reference several Cuda modules in .cu files. Something of the form:</p>
  
  <pre><code>TestCUDA \
      TestCUDA.pro
      main.cpp
      test.cu
  </code></pre>