Skip to content
Snippets Groups Projects
Commit a808074e authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Search in new installed path. Use plural variables

parent 2c4c181a
No related branches found
No related tags found
No related merge requests found
FIND_PATH(segway_rmp_200_INCLUDE_DIR segway_rmp200.h segway_rmp200_exceptions.h /usr/include/iri/segway_rmp_200 /usr/local/include/iri/segway_rmp_200) SET(name segway_rmp_200)
#edit the following line to add the librarie's header files
SET(header_files segway_rmp200.h segway_rmp200_exceptions.h)
FIND_LIBRARY(segway_rmp_200_LIBRARY FIND_PATH(${name}_INCLUDE_DIRS ${header_files} /usr/include/iri/${name} /usr/local/include/iri/${name})
NAMES segway_rmp_200
PATHS /usr/lib /usr/lib/iri/segway_rmp_200 /usr/local/lib /usr/local/lib/iri/segway_rmp_200)
SET(segway_rmp_200_INCLUDE_DIRS ${segway_rmp_200_INCLUDE_DIR})
SET(segway_rmp_200_LIBRARIES ${segway_rmp_200_LIBRARY})
IF (segway_rmp_200_INCLUDE_DIR AND segway_rmp_200_LIBRARY) FIND_LIBRARY(${name}_LIBRARIES
SET(segway_rmp_200_FOUND TRUE) NAMES ${name}
ENDIF (segway_rmp_200_INCLUDE_DIR AND segway_rmp_200_LIBRARY) PATHS /usr/lib /usr/lib/iri/${name} /usr/local/lib /usr/local/lib/iri/${name})
IF (segway_rmp_200_FOUND) SET(${name}_INCLUDE_DIR ${${name}_INCLUDE_DIRS})
IF (NOT segway_rmp_200_FIND_QUIETLY) SET(${name}_LIBRARY ${${name}_LIBRARIES})
MESSAGE(STATUS "Found Segway RMP200 driver: ${segway_rmp_200_LIBRARY}")
ENDIF (NOT segway_rmp_200_FIND_QUIETLY)
ELSE (segway_rmp_200_FOUND)
IF (segway_rmp_200_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find segway RMP200 driver")
ENDIF (segway_rmp_200_FIND_REQUIRED)
ENDIF (segway_rmp_200_FOUND)
IF (${name}_INCLUDE_DIRS AND ${name}_LIBRARIES)
SET(${name}_FOUND TRUE)
ENDIF (${name}_INCLUDE_DIRS AND ${name}_LIBRARIES)
IF (${name}_FOUND)
IF (NOT ${name}_FIND_QUIETLY)
MESSAGE(STATUS "Found ${name}: ${${name}_LIBRARIES}")
ENDIF (NOT ${name}_FIND_QUIETLY)
ELSE (${name}_FOUND)
IF (${name}_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find ${name}")
ENDIF (${name}_FIND_REQUIRED)
ENDIF (${name}_FOUND)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment