Skip to content

Commit 7f9a1c4

Browse files
committed
Update gtest linking
1 parent af893ec commit 7f9a1c4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ if (INTEGRATION_TESTS)
4444
)
4545

4646
add_executable(instruction_executor_test test_instruction_executor.cpp)
47-
target_include_directories(instruction_executor_test PRIVATE ${GTEST_INCLUDE_DIRS})
48-
target_link_libraries(instruction_executor_test PRIVATE ur_client_library::urcl ${GTEST_LIBRARIES})
47+
target_link_libraries(instruction_executor_test PRIVATE ur_client_library::urcl GTest::gtest_main)
4948
gtest_add_tests(TARGET instruction_executor_test
5049
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
5150
)
@@ -172,4 +171,4 @@ gtest_add_tests(TARGET robot_receive_timeout_tests
172171
add_executable(control_mode_tests test_control_mode.cpp)
173172
target_link_libraries(control_mode_tests PRIVATE ur_client_library::urcl GTest::gtest_main)
174173
gtest_add_tests(TARGET control_mode_tests
175-
)
174+
)

0 commit comments

Comments
 (0)