Skip to content

Commit fc76e85

Browse files
authored
Merge pull request #90 from Smona/fix/allow-disabling-tests
Allow disabling tests with CATKIN_ENABLE_TESTING
2 parents 7d5fe75 + 018d67a commit fc76e85

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

laser_scan_matcher/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set( ROS_CXX_DEPENDENCIES
1313
nav_msgs)
1414

1515
# Find catkin and all required ROS components
16-
find_package(catkin REQUIRED COMPONENTS ${ROS_CXX_DEPENDENCIES} rostest)
16+
find_package(catkin REQUIRED COMPONENTS ${ROS_CXX_DEPENDENCIES})
1717
find_package(PCL REQUIRED QUIET)
1818

1919
# Find csm project
@@ -68,5 +68,8 @@ install(FILES laser_scan_matcher_nodelet.xml
6868
install(DIRECTORY demo
6969
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
7070

71-
add_rostest(test/run.test)
72-
add_rostest(test/covariance.test)
71+
if(CATKIN_ENABLE_TESTING)
72+
find_package(rostest)
73+
add_rostest(test/run.test)
74+
add_rostest(test/covariance.test)
75+
endif()

0 commit comments

Comments
 (0)