CMakeLists.txt 728 B

1234567891011121314151617181920212223242526272829303132333435
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(sick_lms5xx)
  3. find_package(catkin REQUIRED COMPONENTS
  4. roscpp
  5. sensor_msgs
  6. tf
  7. )
  8. catkin_package()
  9. include_directories(
  10. ${catkin_INCLUDE_DIRS}
  11. nodes/lms511/include/lms511
  12. )
  13. add_executable(lms511_node
  14. nodes/lms511/src/lms5xx_node.cpp
  15. nodes/lms511/src/SickLMS5xx.cc
  16. nodes/lms511/src/SickLMS5xxBufferMonitor.cc
  17. nodes/lms511/src/SickLMS5xxMessage.cc
  18. )
  19. add_dependencies(lms511_node
  20. ${catkin_EXPORTED_TARGETS}
  21. )
  22. target_link_libraries(lms511_node
  23. ${catkin_LIBRARIES}
  24. )
  25. install(TARGETS lms511_node
  26. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  27. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  28. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  29. )