Adding Google Test Project to a Project's GitHub Repo #4411
Replies: 1 comment
-
After some experimenting I think I found a way to do this.
Open Next, to the gTestProgramName project in your solution, you should add a reference to targetProgramName. Please note at this point the selected files above will have been copied into the Doing the above step is important in order to import your project source code files into test.cpp using relative paths (useful since contributors won't have your absolute paths). Doing all these steps have allowed me to add Google Test to my project repository in such a way that future contributors can use Google Test:
|
Beta Was this translation helpful? Give feedback.
-
I've been able to use Google Test to test a C++ program of mine, following Microsoft's instructions for Google Test in Visual Studio
The program is developed in Visual Studio 2022 and does not use CMake.
I want to include the Google Test project to my program's GitHub repository so contributors can also use Google Test for testing.
Since Google Test requires its own Visual Studio project, my C++ program and Google Test exist in different solution folders.
Is there a suggested way to add the Google Test Visual Studio project to my repo?
Beta Was this translation helpful? Give feedback.
All reactions