Skip to content

Commit

Permalink
Update linking of tests
Browse files Browse the repository at this point in the history
Relates #711
  • Loading branch information
RainerKuemmerle committed Aug 16, 2023
1 parent ee46953 commit 12d6171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

macro(create_test target)
target_link_libraries(${target} gmock_main)
target_link_libraries(${target} gtest gmock gtest_main)
add_test (NAME ${target} COMMAND $<TARGET_FILE:${target}>)
endmacro(create_test)

Expand Down

0 comments on commit 12d6171

Please sign in to comment.