Skip to content

Commit

Permalink
Merge pull request #90 from Smona/fix/allow-disabling-tests
Browse files Browse the repository at this point in the history
Allow disabling tests with CATKIN_ENABLE_TESTING
  • Loading branch information
130s authored Oct 17, 2023
2 parents 7d5fe75 + 018d67a commit fc76e85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions laser_scan_matcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set( ROS_CXX_DEPENDENCIES
nav_msgs)

# Find catkin and all required ROS components
find_package(catkin REQUIRED COMPONENTS ${ROS_CXX_DEPENDENCIES} rostest)
find_package(catkin REQUIRED COMPONENTS ${ROS_CXX_DEPENDENCIES})
find_package(PCL REQUIRED QUIET)

# Find csm project
Expand Down Expand Up @@ -68,5 +68,8 @@ install(FILES laser_scan_matcher_nodelet.xml
install(DIRECTORY demo
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )

add_rostest(test/run.test)
add_rostest(test/covariance.test)
if(CATKIN_ENABLE_TESTING)
find_package(rostest)
add_rostest(test/run.test)
add_rostest(test/covariance.test)
endif()

0 comments on commit fc76e85

Please sign in to comment.