CMakeLists.txt 809 B

12345678910111213141516171819202122232425262728
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(hokuyo)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. roscpp
  6. sensor_msgs
  7. )
  8. find_package(Boost 1.53 REQUIRED system serialization)
  9. catkin_package()
  10. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
  11. include_directories(${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
  12. add_executable(hokuyo_3d nodes/hokuyo_3d/hokuyo_3d.cpp nodes/hokuyo_3d/vssp.hpp)
  13. target_link_libraries(hokuyo_3d ${catkin_LIBRARIES} ${Boost_LIBRARIES})
  14. install(TARGETS hokuyo_3d
  15. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  16. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  17. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  18. )
  19. install(DIRECTORY scripts/
  20. DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
  21. PATTERN ".svn" EXCLUDE
  22. )