Commit 24e7f996 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the simulated library form the Find cmake file.

parent f441ebf5
#edit the following line to add the librarie's header files
FIND_PATH(bno055_imu_driver_INCLUDE_DIRS bno055_imu_driver.h bno055_imu_exceptions.h bno055_common.h bno055_imu_sim.h /usr/local/include/iri/bno055_imu_driver /usr/include/iri/bno055_imu_driver)
FIND_PATH(bno055_imu_driver_INCLUDE_DIRS bno055_imu_driver.h bno055_imu_exceptions.h bno055_common.h /usr/local/include/iri/bno055_imu_driver /usr/include/iri/bno055_imu_driver)
FIND_LIBRARY(bno055_imu_driver_LIBRARIES_aux
FIND_LIBRARY(bno055_imu_driver_LIBRARIES
NAMES bno055_imu_driver
PATHS /usr/local/lib/iri/bno055_imu_driver /usr/lib/iri/bno055_imu_driver)
FIND_LIBRARY(bno055_imu_sim_LIBRARIES_aux
NAMES bno055_imu_sim
PATHS /usr/local/lib/iri/bno055_imu_driver /usr/lib/iri/bno055_imu_driver)
IF (bno055_imu_driver_LIBRARIES_aux AND bno055_imu_sim_LIBRARIES_aux)
SET(bno055_imu_driver_LIBRARIES ${bno055_imu_driver_LIBRARIES_aux} ${bno055_imu_sim_LIBRARIES_aux})
ELSE (bno055_imu_driver_LIBRARIES_aux AND bno055_imu_sim_LIBRARIES_aux)
MESSAGE(FATAL_ERROR "Could not find bn055_imu_driver ${bno055_imu_driver_LIBRARIES_aux} or bno055_imu_sim ${bno055_imu_sim_LIBRARIES_aux}")
ENDIF (bno055_imu_driver_LIBRARIES_aux AND bno055_imu_sim_LIBRARIES_aux)
SET(bno055_imu_driver_INCLUDE_DIR ${bno055_imu_driver_INCLUDE_DIRS})
SET(bno055_imu_driver_LIBRARY ${bno055_imu_driver_LIBRARIES})
IF (bno055_imu_driver_INCLUDE_DIRS AND bno055_imu_driver_LIBRARIES)
SET(bno055_imu_driver_FOUND TRUE)
ENDIF (bno055_imu_driver_INCLUDE_DIRS AND bno055_imu_driver_LIBRARIES)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment