Commit a76ed5a3 authored by asantamaria's avatar asantamaria
Browse files

FIX installation paths to match iri drivers standard

parent 214f26a6
#edit the following line to add the librarie's header files
FIND_PATH(lidar_lite_INCLUDE_DIR lidar_lite.h /usr/include/iri/lidar_lite /usr/local/include/iri/lidar_lite)
FIND_PATH(lidar_lite_INCLUDE_DIR lidar_lite.h /usr/include/iridrivers/lidar_lite /usr/local/include/iridrivers/lidar_lite)
FIND_LIBRARY(lidar_lite_LIBRARY
NAMES lidar_lite
PATHS /usr/lib /usr/lib/iri/lidar_lite /usr/local/lib /usr/local/lib/iri/lidar_lite)
PATHS /usr/lib /usr/lib/iridrivers /usr/local/lib /usr/local/lib/iridrivers)
SET(lidar_lite_INCLUDE_DIRS ${lidar_lite_INCLUDE_DIR})
SET(lidar_lite_LIBRARIES ${lidar_lite_LIBRARY})
......
......@@ -37,11 +37,13 @@ else()
endif()
# install
INSTALL(TARGETS lidar_lite
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iri/${PROJECT_NAME}
ARCHIVE DESTINATION lib/iri/${PROJECT_NAME})
INSTALL(FILES ${headers} DESTINATION include/iri/${PROJECT_NAME})
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iridrivers
ARCHIVE DESTINATION lib/iridrivers
)
INSTALL(FILES ${headers} DESTINATION include/iridrivers/${PROJECT_NAME})
INSTALL(FILES ../Findlidar_lite.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
INSTALL(FILES ../99-lidar_lite.rules DESTINATION /etc/udev/rules.d/)
......
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