title: VS 2010 c++ How to have different solution configurations with different source files
body: <p>I have a solution file that has three projects, each with a different solution configuration.  All three solution configurations share a large number of .cpp files, but there are about two .cpp files that differ between the three.  I have three different projects to handle this issue.  Here's an example:</p>
  
  <p>View of the Solution Explorer:</p>
  
  <p>Solution 'Big Project'(3 projects)</p>
  
  <p>Project1</p>
  
  <pre><code>Source Files
    foo1
    foo2
    foo3.cpp
    ...
    fooUnique1.cpp
    fooUnique2.cpp
  </code></pre>
  
  <p>Project2</p>
  
  <pre><code>Source Files
    foo1.cpp
    foo2.cpp
    foo3.cpp
    ...
    fooUnique3.cpp
    fooUnique4.cpp
  </code></pre>
  
  <p>Project3</p>
  
  <pre><code>Source Files
    foo1.cpp
    foo2.cpp
    foo3.cpp
    ...
    fooUnique5.cpp
    fooUnique6.cpp
  </code></pre>
  
  <p>What I would ultimately want is to have just one project and three solution configurations, with each configuration pointing to its respective unique .cpp files.  It is tedious to make a change to a shared .cpp file for each of the projects, so I was wondering if it is possible to have different .cpp files for each solution configuration in one project.</p>