Skip to content

Commit

Permalink
nix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Feb 11, 2025
1 parent fb0fd1f commit 876ccf0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,25 @@ if(BUILD_TESTING)

ament_auto_add_gtest(test_pd_controller tests/test_pd_controller.cpp)
target_link_libraries(test_pd_controller ${PROJECT_NAME})
set_tests_properties(
test_pd_controller
PROPERTIES ENVIRONMENT_MODIFICATION
LD_LIBRARY_PATH=path_list_prepend:${CMAKE_CURRENT_BINARY_DIR})

ament_auto_add_gtest(test_lf_controller tests/test_lf_controller.cpp)
target_link_libraries(test_lf_controller ${PROJECT_NAME})
set_tests_properties(
test_lf_controller
PROPERTIES ENVIRONMENT_MODIFICATION
LD_LIBRARY_PATH=path_list_prepend:${CMAKE_CURRENT_BINARY_DIR})

ament_auto_add_gtest(test_linear_feedback_controller
tests/test_linear_feedback_controller.cpp)
target_link_libraries(test_linear_feedback_controller ${PROJECT_NAME})
set_tests_properties(
test_linear_feedback_controller
PROPERTIES ENVIRONMENT_MODIFICATION
LD_LIBRARY_PATH=path_list_prepend:${CMAKE_CURRENT_BINARY_DIR})
endif()

#
Expand Down

0 comments on commit 876ccf0

Please sign in to comment.