mirror of
https://github.com/google/googletest.git
synced 2025-04-05 21:45:03 +00:00
Merge 4272bb5190
into 52204f78f9
This commit is contained in:
commit
5f4ddcd32b
1 changed files with 3 additions and 2 deletions
|
@ -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).
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue