title: How to force Scons output (exe, obj, lib & dll) to specific build directory?
body: <p>I've been trying to get scons to output exe, obj, lib and dll files to a specific build directory. </p>
  
  <p>My file structure looks like this:</p>
  
  <pre><code>/projectdir
    /build
      /bin
      /obj
    /source
      /subdirs
      /..
    SConstruct
  </code></pre>
  
  <p>Basically, what I get now is my source directory is getting polluted with obj files. I'd rather have it all in one place.</p>
  
  <p>The SConstruct file looks like this:</p>
  
  <pre><code>env.VariantDir('build', 'source', duplicate = 0)
  env.Program('Hierarchy', source = ['source/sconstest.cpp', 'source/utils/IntUtil.cpp'])
  </code></pre>