Skip to content
Snippets Groups Projects
Commit b8f746db authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Adapted to the new installation directories

parent 116d1b6f
No related branches found
No related tags found
No related merge requests found
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH(lidar_lite_INCLUDE_DIR lidar_lite.h exceptions.h lidar_lite_exceptions.h /usr/include/iridrivers/lidar_lite /usr/local/include/iridrivers/lidar_lite) FIND_PATH(lidar_lite_INCLUDE_DIR lidar_lite.h exceptions.h lidar_lite_exceptions.h /usr/local/include/iri/lidar_lite /usr/include/iri/lidar_lite)
FIND_LIBRARY(lidar_lite_LIBRARY FIND_LIBRARY(lidar_lite_LIBRARY
NAMES lidar_lite NAMES lidar_lite
PATHS /usr/lib /usr/lib/iridrivers /usr/local/lib /usr/local/lib/iridrivers) PATHS /usr/local/lib/iri/lidar_lite /usr/lib/iri/lidar_lite)
SET(lidar_lite_INCLUDE_DIRS ${lidar_lite_INCLUDE_DIR}) SET(lidar_lite_INCLUDE_DIRS ${lidar_lite_INCLUDE_DIR})
SET(lidar_lite_LIBRARIES ${lidar_lite_LIBRARY}) SET(lidar_lite_LIBRARIES ${lidar_lite_LIBRARY})
......
...@@ -41,10 +41,10 @@ endif() ...@@ -41,10 +41,10 @@ endif()
INSTALL(TARGETS lidar_lite INSTALL(TARGETS lidar_lite
RUNTIME DESTINATION bin RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iridrivers LIBRARY DESTINATION lib/iri/${PROJECT_NAME}
ARCHIVE DESTINATION lib/iridrivers ARCHIVE DESTINATION lib/iri/${PROJECT_NAME}
) )
INSTALL(FILES ${headers} DESTINATION include/iridrivers/${PROJECT_NAME}) INSTALL(FILES ${headers} DESTINATION include/iri/${PROJECT_NAME})
INSTALL(FILES ../Findlidar_lite.cmake DESTINATION ${CMAKE_ROOT}/Modules/) INSTALL(FILES ../Findlidar_lite.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
# Restart UDEV to account for new rules.d # Restart UDEV to account for new rules.d
......
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