Skip to content
Snippets Groups Projects
Commit d745f482 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Renamed _INCLUDE_DIR -> _INCLUDE_DIRS & _LIBRARY -> _LIBRARIES

parent 8fbb3669
No related branches found
No related tags found
2 merge requests!39release after RAL,!38After 2nd RAL submission
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH( FIND_PATH(
wolfIMU_INCLUDE_DIR wolfIMU_INCLUDE_DIRS
NAMES IMU.found NAMES IMU.found
PATHS /usr/local/include/iri-algorithms/wolf/plugin_IMU) PATHS /usr/local/include/iri-algorithms/wolf/plugin_IMU)
IF(wolfIMU_INCLUDE_DIR) IF(wolfIMU_INCLUDE_DIRS)
MESSAGE("Found wolf IMU include dirs: ${wolfIMU_INCLUDE_DIR}") MESSAGE("Found wolf IMU include dirs: ${wolfIMU_INCLUDE_DIRS}")
ELSE(wolfIMU_INCLUDE_DIR) ELSE(wolfIMU_INCLUDE_DIRS)
MESSAGE("Couldn't find wolf IMU include dirs") MESSAGE("Couldn't find wolf IMU include dirs")
ENDIF(wolfIMU_INCLUDE_DIR) ENDIF(wolfIMU_INCLUDE_DIRS)
FIND_LIBRARY( FIND_LIBRARY(
wolfIMU_LIBRARY wolfIMU_LIBRARIES
NAMES libwolfIMU.so libwolfIMU.dylib NAMES libwolfIMU.so libwolfIMU.dylib
PATHS /usr/local/lib/iri-algorithms) PATHS /usr/local/lib/iri-algorithms)
IF(wolfIMU_LIBRARY) IF(wolfIMU_LIBRARIES)
MESSAGE("Found wolf IMU lib: ${wolfIMU_LIBRARY}") MESSAGE("Found wolf IMU lib: ${wolfIMU_LIBRARIES}")
ELSE(wolfIMU_LIBRARY) ELSE(wolfIMU_LIBRARIES)
MESSAGE("Couldn't find wolf IMU lib") MESSAGE("Couldn't find wolf IMU lib")
ENDIF(wolfIMU_LIBRARY) ENDIF(wolfIMU_LIBRARIES)
IF (wolfIMU_INCLUDE_DIR AND wolfIMU_LIBRARY) IF (wolfIMU_INCLUDE_DIRS AND wolfIMU_LIBRARIES)
SET(wolfIMU_FOUND TRUE) SET(wolfIMU_FOUND TRUE)
ELSE(wolfIMU_INCLUDE_DIR AND wolfIMU_LIBRARY) ELSE(wolfIMU_INCLUDE_DIRS AND wolfIMU_LIBRARIES)
set(wolfIMU_FOUND FALSE) set(wolfIMU_FOUND FALSE)
ENDIF (wolfIMU_INCLUDE_DIR AND wolfIMU_LIBRARY) ENDIF (wolfIMU_INCLUDE_DIRS AND wolfIMU_LIBRARIES)
IF (wolfIMU_FOUND) IF (wolfIMU_FOUND)
IF (NOT wolfIMU_FIND_QUIETLY) IF (NOT wolfIMU_FIND_QUIETLY)
MESSAGE(STATUS "Found wolf IMU: ${wolfIMU_LIBRARY}") MESSAGE(STATUS "Found wolf IMU: ${wolfIMU_LIBRARIES}")
ENDIF (NOT wolfIMU_FIND_QUIETLY) ENDIF (NOT wolfIMU_FIND_QUIETLY)
ELSE (wolfIMU_FOUND) ELSE (wolfIMU_FOUND)
IF (wolfIMU_FIND_REQUIRED) IF (wolfIMU_FIND_REQUIRED)
...@@ -38,7 +38,7 @@ ENDIF (wolfIMU_FOUND) ...@@ -38,7 +38,7 @@ ENDIF (wolfIMU_FOUND)
macro(wolf_report_not_found REASON_MSG) macro(wolf_report_not_found REASON_MSG)
set(wolfIMU_FOUND FALSE) set(wolfIMU_FOUND FALSE)
unset(wolfIMU_INCLUDE_DIR) unset(wolfIMU_INCLUDE_DIRS)
unset(wolfIMU_LIBRARIES) unset(wolfIMU_LIBRARIES)
# Reset the CMake module path to its state when this script was called. # Reset the CMake module path to its state when this script was called.
......
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