Skip to content

Commit 47d2098

Browse files
committed
simplify test specification
before anyone starts copying from here...
1 parent 81ec8bb commit 47d2098

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

demo/test/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
if (CATKIN_ENABLE_TESTING)
77
find_package(rostest REQUIRED)
88

9-
add_executable(pick_place_test pick_place_test.cpp)
10-
target_link_libraries(pick_place_test ${PROJECT_NAME}_pick_place_task ${catkin_LIBRARIES} gtest_main)
11-
12-
add_rostest(pick_place.test)
9+
add_rostest_gtest(pick_place_test pick_place.test pick_place_test.cpp)
10+
target_link_libraries(pick_place_test ${PROJECT_NAME}_pick_place_task ${catkin_LIBRARIES})
1311
endif()

0 commit comments

Comments
 (0)