Having a few issues and hope I can find some help.
I have two projects under the same solution in Visual Studio 2012
A bit of background I cam creating a console application which outputs as a .exe this is in one project.
In another project I have google test set up to run unit tests on the classes in the console application project.
If I was able to compile the main project into a static library there wouldn't be an issue due to could link to the .lib, however this isn't an option.
I have found that linking to the .obj works however I need to manually enter each one into the linker -> input and due to there is going to be a large number of classes I can see this getting messy.
How do I solve this issue, is there a way of linking to all .obj in the same folder or is there an option I am missing?
See Question&Answers more detail:os