summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-22 16:52:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-11-22 16:53:19 (GMT)
commitdf123f7d5f5083515986613d1c95fb35e47bd0a8 (patch)
tree82d76c3cca01347c132f866f52749a16e2310bcd /Tests
parent86047f75fc70530b4e758ef52fa5ca095e5d2b66 (diff)
parent50bf457a0dd857cf976b22c5be7d333493233d1e (diff)
downloadCMake-df123f7d5f5083515986613d1c95fb35e47bd0a8.zip
CMake-df123f7d5f5083515986613d1c95fb35e47bd0a8.tar.gz
CMake-df123f7d5f5083515986613d1c95fb35e47bd0a8.tar.bz2
Merge topic 'FindGTest-target-for-gmock'
50bf457a0d FindGTest: Add target for gmock library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6632
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindGTest/Test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/FindGTest/Test/CMakeLists.txt b/Tests/FindGTest/Test/CMakeLists.txt
index 6537238..9c1eb5e 100644
--- a/Tests/FindGTest/Test/CMakeLists.txt
+++ b/Tests/FindGTest/Test/CMakeLists.txt
@@ -16,3 +16,7 @@ add_executable(test_gtest_var main.cxx)
target_include_directories(test_gtest_var PRIVATE ${GTEST_INCLUDE_DIRS})
target_link_libraries(test_gtest_var PRIVATE ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_test(NAME test_gtest_var COMMAND test_gtest_var)
+
+add_executable(test_gmock_tgt main.cxx)
+target_link_libraries(test_gmock_tgt GTest::gmock_main)
+add_test(NAME test_gmock_tgt COMMAND test_gmock_tgt)