Skip to content

Commit

Permalink
make rostest in CMakeLists optional (ros/rosdistro#3010) (#75)
Browse files Browse the repository at this point in the history
* make rostest in CMakeLists optional (ros/rosdistro#3010)
* rostest is now a test_depend instead of a build_depend
  • Loading branch information
bulwahn authored and sloretz committed Oct 27, 2017
1 parent 56281a0 commit 722eae7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")

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 @@ -40,6 +40,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
3 changes: 1 addition & 2 deletions package.xml
Expand Up @@ -30,7 +30,6 @@
<build_depend version_gte="1.3.0">orocos_kdl</build_depend>
<build_depend>rosconsole</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>rostest</build_depend>
<build_depend>rostime</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>tf</build_depend>
Expand All @@ -49,5 +48,5 @@
<run_depend>tf2_ros</run_depend>
<run_depend>tf2_kdl</run_depend>

<build_depend>rostest</build_depend>
<test_depend>rostest</test_depend>
</package>

0 comments on commit 722eae7

Please sign in to comment.