title: How to include header AND source files folder in Visual Studio
body: <p>I am using Visual Studio (2017) and I need the following.</p>
  
  <p>I have a folder where a code generator puts the .h and .c files obtained from a formal model. This folder is not controlled by me, e.g. I cannot write in it, but it is updated by another team member.</p>
  
  <p>By using the /I compiler options (or Additional include directories in the project properties) I managed to import all the generated header files in my VS project. What I am supposed to do is to integrate this generated code into a specific platform, this means that I have to compile both the generated code and the integration code on the target platform. The problem is, the compiler is not able to resolve the generated function definitions of the generated code as it only sees the .h files. What I got is a linking error (external symbol  not resolved)</p>
  
  <p>To solve the problem, I added the existing .c files manually, one by one. The obvious problems that comes with this solution are</p>
  
  <ul>
  <li>manual boring work</li>
  <li>when new files are generated, I need to manually import the new files</li>
  </ul>
  
  <p>Question is: is there an option that can be set in order to specify the path of the source files without passing them one by one?</p>
  
  <p>note: just copying and pasting the generated code in the VS project folder is not an acceptable solution.</p>
  
  <p>Thanks</p>