In the Solutions Explorer pane select the Release (or Debug or whatever build you are playing with) and open the Properties... item.
Down in there you should see Include Directories and the like. Make sure that the directory for your include files is listed in the path.
I presume that adding the .cpp files to the project added their path properly, but you should check that as well.
If you are just testing existing projects, there should be an existing Project Solution (.sln) file that goes with the source code.
If you are doing daily testing with multiple different projects that require you to add a bunch of folders, AND you don't have .sln files or any other build script (which you should, btw), you have two basic options:
• simply do the manual thing over and over (as it seems to be your job, so just do it?)
• learn to use the command prompt to compile — you can easily write a script (using any
scripting language you find convenient) to build yourself a simple script to do it. It can
be as easy as a simple batch file:
1 2 3 4 5 6 7 8 9
|
@echo off
setlocal
:: cc.bat include-dir libs-dir source-dir exe-name
if not "%1"=="" set INCLUDE=%1;%INCLUDE%
if not "%2"=="" set LIBS=%2;%LIBS%
pushd %3
cl /EHsc /W4 /Ox ... *.cpp /Fe:%4
popd
echo done
|
Use it easily:
C:\Users\BishopOsiris\SomeProject> cc . "" . foo.exe
|
or
C:\Users\BishopOsiris\SomeProject> cc Header "" CPP foo.exe
|
Another option is to learn MSBuild (
https://markheath.net/post/getting-started-with-msbuild), which takes a little getting used to but makes life very easy.
Another option is to frob CMake (
https://cmake.org) to create NMake makefiles for your projects.
All of these options can be automated to some degree, or made simple enough that opening VS to play with everything directly can be avoided.
I really do NOT recommend duplicating files like you seem to suggest. This just introduces a failure point...
Hope this helps.