diff options
| author | JackBoosY <yuzaiyang@beyondsoft.com> | 2019-07-18 00:11:23 -0700 |
|---|---|---|
| committer | JackBoosY <yuzaiyang@beyondsoft.com> | 2019-07-18 00:12:36 -0700 |
| commit | 2865da8f4a6d911617cdd9b147816c4cd02bbf7e (patch) | |
| tree | e9297e4b621f1c47603ced10b567624e620cc1de /ports/gtest/usage | |
| parent | 2467136b314f33b61579637a6a6d1390d2f95381 (diff) | |
| download | vcpkg-2865da8f4a6d911617cdd9b147816c4cd02bbf7e.tar.gz vcpkg-2865da8f4a6d911617cdd9b147816c4cd02bbf7e.zip | |
[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/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)
|
