diff options
| author | Phil Christensen <philc@microsoft.com> | 2019-08-23 11:18:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-23 11:18:34 -0700 |
| commit | bd4678610b221ae6cd4911295e84808ea7924cc6 (patch) | |
| tree | 1e51033d924c41cd147f33665990b75fe19ff4b7 /ports/gtest/usage | |
| parent | 1245f1dbfc383d33b2fa576f010644de9687280e (diff) | |
| parent | cf447c050c734fc71e5254ea9e05e1bc4a9d208d (diff) | |
| download | vcpkg-bd4678610b221ae6cd4911295e84808ea7924cc6.tar.gz vcpkg-bd4678610b221ae6cd4911295e84808ea7924cc6.zip | |
Merge branch 'master' into multi_line_depends
Diffstat (limited to 'ports/gtest/usage')
| -rw-r--r-- | ports/gtest/usage | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/gtest/usage b/ports/gtest/usage index d40782e0e..9ba65996e 100644 --- a/ports/gtest/usage +++ b/ports/gtest/usage @@ -1,6 +1,11 @@ The package gtest is compatible with built-in CMake targets:
enable_testing()
+
find_package(GTest MODULE REQUIRED)
target_link_libraries(main PRIVATE GTest::GTest GTest::Main)
+
+ find_package(GMock CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE GMock::gmock GMock::gmock_main)
+
add_test(AllTestsInMain main)
|
