Skip to content

Commit

Permalink
make rostest in CMakeLists optional (ros/rosdistro#3010)
Browse files Browse the repository at this point in the history
This commit has the same intentions as commit f3f1c4d on the
indigo branch.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
  • Loading branch information
bulwahn committed Apr 15, 2017
1 parent 530bba1 commit e958839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(robot_state_publisher)

find_package(orocos_kdl REQUIRED)
find_package(catkin REQUIRED
COMPONENTS roscpp rosconsole rostime tf tf2_ros tf2_kdl kdl_parser rostest
COMPONENTS roscpp rosconsole rostime tf tf2_ros tf2_kdl kdl_parser
)
find_package(Eigen3 REQUIRED)

Expand Down Expand Up @@ -38,6 +38,8 @@ target_link_libraries(state_publisher ${PROJECT_NAME}_solver ${orocos_kdl_LIBRAR

if (CATKIN_ENABLE_TESTING)

find_package(rostest REQUIRED)

add_rostest_gtest(test_one_link ${CMAKE_CURRENT_SOURCE_DIR}/test/test_one_link.launch test/test_one_link.cpp)
target_link_libraries(test_one_link ${catkin_LIBRARIES} ${PROJECT_NAME}_solver)

Expand Down

0 comments on commit e958839

Please sign in to comment.