Skip to content

Commit

Permalink
Update gtest linking
Browse files Browse the repository at this point in the history
  • Loading branch information
urfeex committed Jan 20, 2025
1 parent 540d092 commit ff9d90e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ if (INTEGRATION_TESTS)
)

add_executable(instruction_executor_test test_instruction_executor.cpp)
target_include_directories(instruction_executor_test PRIVATE ${GTEST_INCLUDE_DIRS})
target_link_libraries(instruction_executor_test PRIVATE ur_client_library::urcl ${GTEST_LIBRARIES})
target_link_libraries(instruction_executor_test PRIVATE ur_client_library::urcl GTest::gtest_main)
gtest_add_tests(TARGET instruction_executor_test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down Expand Up @@ -172,4 +171,4 @@ gtest_add_tests(TARGET robot_receive_timeout_tests
add_executable(control_mode_tests test_control_mode.cpp)
target_link_libraries(control_mode_tests PRIVATE ur_client_library::urcl GTest::gtest_main)
gtest_add_tests(TARGET control_mode_tests
)
)

0 comments on commit ff9d90e

Please sign in to comment.