CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(kitti_player)
  3. SET(CMAKE_CXX_FLAGS "-O3")
  4. find_package(autoware_build_flags REQUIRED)
  5. find_package(catkin REQUIRED COMPONENTS
  6. cv_bridge
  7. geometry_msgs
  8. image_transport
  9. pcl_ros
  10. roscpp
  11. std_msgs
  12. stereo_msgs
  13. tf
  14. tf2
  15. )
  16. find_package(PCL 1.7 REQUIRED)
  17. find_package(OpenCV REQUIRED)
  18. find_package(Qt5Core REQUIRED)
  19. generate_dynamic_reconfigure_options(cfg/kitti_player.cfg)
  20. catkin_package(CATKIN_DEPENDS dynamic_reconfigure)
  21. include_directories(
  22. ${catkin_INCLUDE_DIRS}
  23. ${PCL_INCLUDE_DIRS}
  24. ${OpenCV_LIBS}
  25. )
  26. link_directories(${PCL_LIBRARY_DIRS})
  27. add_definitions(${PCL_DEFINITIONS})
  28. add_executable(kitti_player src/kitti_player.cpp)
  29. target_link_libraries(kitti_player
  30. ${catkin_LIBRARIES}
  31. ${PCL_LIBRARIES}
  32. ${OpenCV_LIBS}
  33. )
  34. add_dependencies(kitti_player ${catkin_EXPORTED_TARGETS})
  35. install(TARGETS kitti_player
  36. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  37. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  38. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  39. )
  40. install(DIRECTORY launch/
  41. DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
  42. PATTERN ".svn" EXCLUDE
  43. )
  44. install(DIRECTORY cfg/
  45. DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/cfg
  46. PATTERN ".svn" EXCLUDE
  47. )