mirror of
https://github.com/google/googletest.git
synced 2026-06-15 08:26:11 +08:00
Merge 4272bb51904567609a1cd35c1a38003d0a20395a into 7140cd416cecd7462a8aae488024abeee55598e4
This commit is contained in:
commit
fa98ecc6b4
@ -117,8 +117,9 @@ gtest_discover_tests(hello_test)
|
|||||||
```
|
```
|
||||||
|
|
||||||
The above configuration enables testing in CMake, declares the C++ test binary
|
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
|
you want to build (`hello_test`), and links it against GoogleTest (`GTest::gtest_main`).
|
||||||
last two lines enable CMake's test runner to discover the tests included in the
|
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
|
binary, using the
|
||||||
[`GoogleTest` CMake module](https://cmake.org/cmake/help/git-stage/module/GoogleTest.html).
|
[`GoogleTest` CMake module](https://cmake.org/cmake/help/git-stage/module/GoogleTest.html).
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user