I would like to use GoogleTest to run unit tests on my project. In my solution I have three projects:
The GoogleTest project, which is a static library My Project Under Test, an executable My Project containing my Unit Tests, an executable
My Tests run fine, but only if I manually include the .h & .cpp files from my project under test into my Unit Tests project. I'd like to avoid this step, is there some what to do this? Please if I'm neglecting to mention any important details just let me know.
The Error I receive if I don't manually include these files is:
gtest/include
andgtest/lib
to yourUnitTest_TestProject1
?