forked from mllofriu/camera_info_manager_py
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make rostest in CMakeLists optional (ros/rosdistro#3010)
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |