mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
moved rtabmap-ros-pkg project in this project
git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@52 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
25
cmake_modules/FindROS.cmake
Normal file
25
cmake_modules/FindROS.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
# - Find ROS
|
||||
# This module finds an installed ROS package.
|
||||
#
|
||||
# It sets the following variables:
|
||||
# ROS_FOUND - Set to false, or undefined, if ROS isn't found.
|
||||
|
||||
IF(UNIX)
|
||||
FIND_PROGRAM(ROS_EXEC NAME rosrun PATHS)
|
||||
IF(ROS_EXEC)
|
||||
SET(ROS_FOUND TRUE)
|
||||
ENDIF(ROS_EXEC)
|
||||
ENDIF(UNIX)
|
||||
|
||||
IF (ROS_FOUND)
|
||||
# show which ROS was found only if not quiet
|
||||
IF (NOT ROS_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found ROS")
|
||||
ENDIF (NOT ROS_FIND_QUIETLY)
|
||||
ELSE (ROS_FOUND)
|
||||
# fatal error if ROS is required but not found
|
||||
IF (ROS_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find ROS")
|
||||
ENDIF (ROS_FIND_REQUIRED)
|
||||
ENDIF (ROS_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user