Findsegway_rmp_400.cmake 803 Bytes
Newer Older
Guillem Alenyà's avatar
Guillem Alenyà committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FIND_PATH(segway_rmp_400_INCLUDE_DIR segway_RMP400.h segway_RMP400_exceptions.h /usr/include/iridrivers /usr/local/include/iridrivers)

FIND_LIBRARY(segway_rmp_400_LIBRARY
    NAMES segway_rmp_400
    PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers) 

IF (segway_rmp_400_INCLUDE_DIR AND segway_rmp_400_LIBRARY)
   SET(segway_rmp_400_FOUND TRUE)
ENDIF (segway_rmp_400_INCLUDE_DIR AND segway_rmp_400_LIBRARY)

IF (segway_rmp_400_FOUND)
   IF (NOT segway_rmp_400_FIND_QUIETLY)
      MESSAGE(STATUS "Found Segway RMP400 driver: ${segway_rmp_400_LIBRARY}")
   ENDIF (NOT segway_rmp_400_FIND_QUIETLY)
ELSE (segway_rmp_400_FOUND)
   IF (segway_rmp_400_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find segway RMP200 driver")
   ENDIF (segway_rmp_400_FIND_REQUIRED)
ENDIF (segway_rmp_400_FOUND)