diff options
author | Brad King <brad.king@kitware.com> | 2021-11-22 16:52:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-22 16:53:19 (GMT) |
commit | df123f7d5f5083515986613d1c95fb35e47bd0a8 (patch) | |
tree | 82d76c3cca01347c132f866f52749a16e2310bcd /Tests | |
parent | 86047f75fc70530b4e758ef52fa5ca095e5d2b66 (diff) | |
parent | 50bf457a0dd857cf976b22c5be7d333493233d1e (diff) | |
download | CMake-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.txt | 4 |
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) |