Skip to content

Commit 018d67a

Browse files
committed
Only load rostest when tests are enabled
1 parent 503e849 commit 018d67a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

laser_scan_matcher/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
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
@@ -69,6 +69,7 @@ install(DIRECTORY demo
6969
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
7070

7171
if(CATKIN_ENABLE_TESTING)
72+
find_package(rostest)
7273
add_rostest(test/run.test)
7374
add_rostest(test/covariance.test)
7475
endif()

0 commit comments

Comments
 (0)