1 CMake
https://cmake.org/cmake/help/v3.17/module/GoogleTest.html
This module defines functions to help use the Google Test infrastructure. Two mechanisms for adding tests are provided. gtest_add_tests()
has been around for some time, originally via find_package(GTest)
. gtest_discover_tests()
was introduced in CMake 3.10.
2. Visual Studio
https://docs.microsoft.com/en-us/visualstudio/test/how-to-use-google-test-for-cpp?view=vs-2019