Skip to content

Commit

Permalink
Merge pull request #6 from bulwahn/master
Browse files Browse the repository at this point in the history
make rostest in CMakeLists optional (ros/rosdistro#3010)
  • Loading branch information
jack-oquin committed Apr 8, 2014
2 parents 811f9c6 + 436c766 commit 302e6e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
cmake_minimum_required(VERSION 2.8.3)
project(camera_info_manager_py)

find_package(catkin REQUIRED COMPONENTS rospy rostest sensor_msgs)
find_package(catkin REQUIRED COMPONENTS rospy sensor_msgs)
include_directories(include ${catkin_INCLUDE_DIRS})

catkin_python_setup()
catkin_package(CATKIN_DEPENDS sensor_msgs)

# Unit test uses nose, but needs rostest to create a ROS environment.
if (CATKIN_ENABLE_TESTING)
find_package(rostest)
add_rostest(tests/unit_test.test)
endif(CATKIN_ENABLE_TESTING)

0 comments on commit 302e6e6

Please sign in to comment.