Skip to content

Commit

Permalink
make rostest in CMakeLists optional (ros/rosdistro#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bulwahn committed Feb 26, 2014
1 parent a8fbfcd commit 82ffa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camera_info_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ catkin_package(INCLUDE_DIRS include
DEPENDS Boost roscpp sensor_msgs
)

find_package(catkin COMPONENTS camera_calibration_parsers image_transport roscpp roslib rostest)
find_package(catkin COMPONENTS camera_calibration_parsers image_transport roscpp roslib)

include_directories(SYSTEM ${camera_calibration_parsers_INCLUDE_DIRS}
${image_transport_INCLUDE_DIRS}
Expand All @@ -34,6 +34,7 @@ install(DIRECTORY include/${PROJECT_NAME}/
)

if(CATKIN_ENABLE_TESTING)
find_package(rostest)
# Unit test uses gtest, but needs rostest to create a ROS environment.
# Hence, it must be created as a normal executable, not using
# catkin_add_gtest() which runs an additional test without rostest.
Expand Down

0 comments on commit 82ffa11

Please sign in to comment.