CMakeLists.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(map_tools)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. pcl_conversions
  6. pcl_ros
  7. roscpp
  8. sensor_msgs
  9. tf
  10. )
  11. catkin_package(
  12. CATKIN_DEPENDS
  13. pcl_conversions
  14. pcl_ros
  15. roscpp
  16. sensor_msgs
  17. tf
  18. )
  19. SET(CMAKE_CXX_FLAGS "-O2 -g -Wall ${CMAKE_CXX_FLAGS}")
  20. include_directories(include ${catkin_INCLUDE_DIRS})
  21. add_executable(pcd_filter nodes/pcd_filter/pcd_filter.cpp)
  22. add_executable(pcd_binarizer nodes/pcd_binarizer/pcd_binarizer.cpp)
  23. add_executable(pcd_arealist nodes/pcd_arealist/pcd_arealist.cpp)
  24. add_executable(csv2pcd nodes/pcd_converter/csv2pcd.cpp)
  25. add_executable(pcd2csv nodes/pcd_converter/pcd2csv.cpp)
  26. add_executable(map_extender nodes/map_extender/map_extender.cpp)
  27. add_executable(pcd_grid_divider nodes/pcd_grid_divider/pcd_grid_divider.cpp)
  28. target_link_libraries(pcd_filter ${catkin_LIBRARIES})
  29. target_link_libraries(pcd_binarizer ${catkin_LIBRARIES})
  30. target_link_libraries(pcd_arealist ${catkin_LIBRARIES})
  31. target_link_libraries(csv2pcd ${catkin_LIBRARIES})
  32. target_link_libraries(pcd2csv ${catkin_LIBRARIES})
  33. target_link_libraries(map_extender ${catkin_LIBRARIES})
  34. target_link_libraries(pcd_grid_divider ${catkin_LIBRARIES})
  35. install(
  36. TARGETS
  37. csv2pcd
  38. map_extender
  39. pcd2csv
  40. pcd_arealist
  41. pcd_binarizer
  42. pcd_filter
  43. pcd_grid_divider
  44. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  45. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  46. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  47. )