build tests using gmock via catkin_add_gmock (#148)

Otherwise these suddenly started to fail for me on Lunar Linux...
This commit is contained in:
Michael Görner 2020-03-20 20:33:33 +01:00 committed by GitHub
parent d61e1708ce
commit 0eae0e652e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ if (CATKIN_ENABLE_TESTING)
catkin_add_gtest(${PROJECT_NAME}-test-properties test_properties.cpp) catkin_add_gtest(${PROJECT_NAME}-test-properties test_properties.cpp)
target_link_libraries(${PROJECT_NAME}-test-properties ${PROJECT_NAME} gtest_main) target_link_libraries(${PROJECT_NAME}-test-properties ${PROJECT_NAME} gtest_main)
catkin_add_gtest(${PROJECT_NAME}-test-cost_queue test_cost_queue.cpp) catkin_add_gmock(${PROJECT_NAME}-test-cost_queue test_cost_queue.cpp)
target_link_libraries(${PROJECT_NAME}-test-cost_queue ${PROJECT_NAME} gtest_main) target_link_libraries(${PROJECT_NAME}-test-cost_queue ${PROJECT_NAME} gtest_main)
catkin_add_gtest(${PROJECT_NAME}-test-interface_state test_interface_state.cpp) catkin_add_gtest(${PROJECT_NAME}-test-interface_state test_interface_state.cpp)

View File

@ -10,7 +10,7 @@ if (CATKIN_ENABLE_TESTING)
target_link_libraries(${PROJECT_NAME}-test-merge-models target_link_libraries(${PROJECT_NAME}-test-merge-models
motion_planning_tasks_utils gtest_main) motion_planning_tasks_utils gtest_main)
catkin_add_gtest(${PROJECT_NAME}-test-solution-models test_solution_models.cpp) catkin_add_gmock(${PROJECT_NAME}-test-solution-models test_solution_models.cpp)
target_link_libraries(${PROJECT_NAME}-test-solution-models target_link_libraries(${PROJECT_NAME}-test-solution-models
motion_planning_tasks_rviz_plugin gtest_main) motion_planning_tasks_rviz_plugin gtest_main)