Skip to content

Commit

Permalink
Remove roslaunch test DEPENDENCIES. Fix ros-industrial#185.
Browse files Browse the repository at this point in the history
These targets don't exist when using isolated builds or when packages are
build that depend on binary distributions that provide the specified targets.

Newer versions of CMake will print copious warnings about the targets not
existing, so remove them.

Only the 'fanuc_driver' package is updated to detect whether the targets
exist in the workspace, to make sure its tests only run after its dependencies
have been built.
  • Loading branch information
gavanderhoorn committed May 5, 2016
1 parent 705ffbe commit 809602c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 47 deletions.
20 changes: 13 additions & 7 deletions fanuc_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,20 @@ set_target_properties(${PROJECT_NAME}_motion_streaming_interface_bswap

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)

set(rl_test_deps
${PROJECT_NAME}_robot_state
${PROJECT_NAME}_robot_state_bswap
${PROJECT_NAME}_motion_streaming_interface
${PROJECT_NAME}_motion_streaming_interface_bswap)

if (TARGET joint_trajectory_action)
# not nice, but industrial_robot_client doesn't prefix its targets
list(APPEND rl_test_deps joint_trajectory_action)
endif()

roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
${PROJECT_NAME}_robot_state
${PROJECT_NAME}_robot_state_bswap
${PROJECT_NAME}_motion_streaming_interface
${PROJECT_NAME}_motion_streaming_interface_bswap)
DEPENDENCIES ${rl_test_deps})
endif()


Expand Down
9 changes: 1 addition & 8 deletions fanuc_lrmate200ic_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
fanuc_driver_robot_state
fanuc_driver_robot_state_bswap
fanuc_driver_motion_streaming_interface
fanuc_driver_motion_streaming_interface_bswap)
roslaunch_add_file_check(tests/roslaunch_test.xml)
endif()

install(DIRECTORY config launch meshes urdf
Expand Down
9 changes: 1 addition & 8 deletions fanuc_m10ia_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
fanuc_driver_robot_state
fanuc_driver_robot_state_bswap
fanuc_driver_motion_streaming_interface
fanuc_driver_motion_streaming_interface_bswap)
roslaunch_add_file_check(tests/roslaunch_test.xml)
endif()

install(DIRECTORY config launch meshes urdf
Expand Down
9 changes: 1 addition & 8 deletions fanuc_m16ib_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
fanuc_driver_robot_state
fanuc_driver_robot_state_bswap
fanuc_driver_motion_streaming_interface
fanuc_driver_motion_streaming_interface_bswap)
roslaunch_add_file_check(tests/roslaunch_test.xml)
endif()

install(DIRECTORY config launch meshes urdf
Expand Down
9 changes: 1 addition & 8 deletions fanuc_m20ia_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
fanuc_driver_robot_state
fanuc_driver_robot_state_bswap
fanuc_driver_motion_streaming_interface
fanuc_driver_motion_streaming_interface_bswap)
roslaunch_add_file_check(tests/roslaunch_test.xml)
endif()

install(DIRECTORY config launch meshes urdf
Expand Down
9 changes: 1 addition & 8 deletions fanuc_m430ia_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(tests/roslaunch_test.xml
DEPENDENCIES
# not nice, but industrial_robot_client doesn't prefix its targets
joint_trajectory_action
fanuc_driver_robot_state
fanuc_driver_robot_state_bswap
fanuc_driver_motion_streaming_interface
fanuc_driver_motion_streaming_interface_bswap)
roslaunch_add_file_check(tests/roslaunch_test.xml)
endif()

install(DIRECTORY config launch meshes urdf
Expand Down

0 comments on commit 809602c

Please sign in to comment.