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

上一篇:cmake_host_system_information


下一篇:Glide框架解析---生命周期的介绍(四)