Cmake & Visual Studio supports GoogleTest
作者:互联网
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
标签:tests,cmake,help,gtest,module,Visual,Studio,supports 来源: https://blog.csdn.net/qq_35865125/article/details/104742874