aboutsummaryrefslogtreecommitdiff
path: root/ports/gtest/usage
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-08-23 10:41:01 -0700
committerGitHub <noreply@github.com>2019-08-23 10:41:01 -0700
commitcf447c050c734fc71e5254ea9e05e1bc4a9d208d (patch)
tree1c008b6cfae6a72ac53bb5c0aa738cf74e70a234 /ports/gtest/usage
parentbc5a1bf1a00d875da0440bd5dc5f80e19919688e (diff)
parentf9b5fe08866130156c534c5055f2b47e9e7313cf (diff)
downloadvcpkg-cf447c050c734fc71e5254ea9e05e1bc4a9d208d.tar.gz
vcpkg-cf447c050c734fc71e5254ea9e05e1bc4a9d208d.zip
Merge pull request #7316 from JackBoosY/dev/jack/4167
[gtest]Re-fix port_main/port_maind libraries path and add gmock cmake files.
Diffstat (limited to 'ports/gtest/usage')
-rw-r--r--ports/gtest/usage5
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)