Merge 4272bb51904567609a1cd35c1a38003d0a20395a into 3ff51c3e80f2c2eb105d43ecb9acab9a62e01600

This commit is contained in:
Marcel Römer 2026-07-28 20:52:57 +02:00 committed by GitHub
commit 73ee540649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,8 +117,9 @@ gtest_discover_tests(hello_test)
```
The above configuration enables testing in CMake, declares the C++ test binary
you want to build (`hello_test`), and links it to GoogleTest (`gtest_main`). The
last two lines enable CMake's test runner to discover the tests included in the
you want to build (`hello_test`), and links it against GoogleTest (`GTest::gtest_main`).
To be able to use GoogleMock, you also need to link against gmock (`GTest::gmock`).
The last two lines enable CMake's test runner to discover the tests included in the
binary, using the
[`GoogleTest` CMake module](https://cmake.org/cmake/help/git-stage/module/GoogleTest.html).