Specifically, I would like to reference game project classes in a separate unit testing project. I am using the CATCH unit testing framework rather than the Unreal automation, and I am hoping to keep the game and tests as separate projects for separation of interests. However, I cannot successfully link the game project to the unit testing one.
I can set the include directories to include the headers from the game in the unit testing project. But I cannot get the latter project to find implementation files. I have tried linking the libraries I could find, but I always get the LNK2001 unresolved external symbol error. So I am stuck with undefined methods.
I am new to linking between projects altogether, so likely I am missing something simple. I am using Visual Studio Community 2013. The most likely looking libraries I found are in Intermediate\Build\Win64\Editor**.lib. I included these library directories in (unit testing) Project Properties → Linker → General → Additional Library Directories, and I included the library filenames in Project Properties → LInker → Input → Additional Dependencies.
Are these the right libraries?
Does Unreal output libraries that can be used by other projects?
Is there any way to reference classes in my game project in another project?
Should I make three projects: one for linking with Unreal, one (which outputs a library rather than executable) with the source code, and one with the test code?