I have an unmanaged C++ DLL. In my solution is a VC project for the DLL, and a separate project, Win32 Console App, that contains my unit tests.
My test project compiles several .cpp files from the DLL project, so that the symbols defined therein can resolve at runtime.
When I build my solution, for every .cpp file that is used in my test project, I have to wait for that file to be compiled once for the DLL project, and then AGAIN for my test project. How can I avoid this double compilation?
I tried to make both projects share the same folder for Output and Intermediate locations, hoping that the test project would find the .obj files there and use them, but it didn't work.
Any other ideas on how I can avoid double-compiling every one of my modules-under-test?