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 4, 2014
1 parent 6e2f2e8 commit 8e1fdde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rospy_tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.3)
project(rospy_tutorials)

find_package(catkin REQUIRED COMPONENTS message_generation rostest std_msgs)
find_package(catkin REQUIRED COMPONENTS message_generation std_msgs)

add_message_files(DIRECTORY msg FILES Floats.msg HeaderString.msg)
add_service_files(DIRECTORY srv FILES AddTwoInts.srv BadTwoInts.srv)
Expand All @@ -27,6 +27,7 @@ foreach(T
endforeach()

if(CATKIN_ENABLE_TESTING)
find_package(rostest)
foreach(T
test/test-add-two-ints.launch
test/test-peer-subscribe-notify.launch
Expand Down

0 comments on commit 8e1fdde

Please sign in to comment.