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

发布了356 篇原创文章 · 获赞 87 · 访问量 23万+

猜你喜欢

转载自blog.csdn.net/qq_35865125/article/details/104742874