CMakeLists.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(synchronization)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. autoware_msgs
  6. geometry_msgs
  7. lidar_tracker
  8. points2image
  9. roscpp
  10. sensor_msgs
  11. std_msgs
  12. visualization_msgs
  13. )
  14. find_package(OpenCV REQUIRED)
  15. catkin_package()
  16. include_directories(
  17. include
  18. ${catkin_INCLUDE_DIRS}
  19. )
  20. add_executable(sync_drivers sync_drivers.cpp)
  21. target_link_libraries(sync_drivers ${catkin_LIBRARIES} ${OpenCV_LIBS})
  22. add_dependencies(sync_drivers ${catkin_EXPORTED_TARGETS})
  23. add_executable(sync_range_fusion computing/perception/detection/packages/cv_tracker/nodes/range_fusion/sync_range_fusion.cpp)
  24. target_link_libraries(sync_range_fusion ${catkin_LIBRARIES} ${OpenCV_LIBS})
  25. add_executable(sync_track computing/perception/detection/packages/cv_tracker/nodes/kf_track/sync_track.cpp)
  26. target_link_libraries(sync_track ${catkin_LIBRARIES} ${OpenCV_LIBS})
  27. add_executable(sync_obj_reproj computing/perception/detection/packages/cv_tracker/nodes/obj_reproj/sync_obj_reproj.cpp)
  28. target_link_libraries(sync_obj_reproj ${catkin_LIBRARIES} ${OpenCV_LIBS})
  29. add_executable(sync_obj_fusion computing/perception/detection/packages/lidar_tracker/nodes/obj_fusion/sync_obj_fusion.cpp)
  30. target_link_libraries(sync_obj_fusion ${catkin_LIBRARIES} ${OpenCV_LIBS})
  31. add_executable(time_monitor time_monitor.cpp)
  32. target_link_libraries(time_monitor ${catkin_LIBRARIES} ${OpenCV_LIBS})
  33. add_dependencies(time_monitor ${catkin_EXPORTED_TARGETS})
  34. install(
  35. TARGETS
  36. sync_drivers
  37. sync_obj_fusion
  38. sync_obj_reproj
  39. sync_range_fusion
  40. sync_track
  41. time_monitor
  42. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  43. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  44. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  45. )
  46. install(DIRECTORY launch/
  47. DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
  48. )