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

Update find cmake adding correct header files to look up for

parent 3f218a8c
No related branches found
No related tags found
1 merge request!1Sergi
#edit the following line to add the librarie's header files
SET(name model_car_drivers)
FIND_PATH(${name}_INCLUDE_DIRS ${name}.h /usr/local/include/iri/${name} /usr/include/iri/${name})
SET(header_files
model_car_actuators.h
model_car_egomotion.h
model_car_ultrasounds.h
model_car_batteries.h
model_car_exceptions.h
model_car_driver_base.h
model_car_protocol.h)
FIND_PATH(${name}_INCLUDE_DIRS ${header_files} /usr/local/include/iri/${name} /usr/include/iri/${name})
FIND_LIBRARY(${name}_LIBRARIES
NAMES ${name}
......@@ -21,4 +31,4 @@ 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
ENDIF (${name}_FOUND)
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