CMakeLists.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(op_planner)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. cmake_modules
  6. op_utility
  7. )
  8. find_package(TinyXML REQUIRED)
  9. catkin_package(
  10. INCLUDE_DIRS include
  11. LIBRARIES op_planner
  12. CATKIN_DEPENDS op_utility
  13. DEPENDS TinyXML
  14. )
  15. ###########
  16. ## Build ##
  17. ###########
  18. include_directories(
  19. include
  20. ${catkin_INCLUDE_DIRS}
  21. ${TinyXML_INCLUDE_DIRS}
  22. )
  23. set(PLANNERH_SRC
  24. src/BehaviorPrediction.cpp
  25. src/BehaviorPrediction.cpp
  26. src/BehaviorPrediction.cpp
  27. src/BehaviorPrediction.cpp
  28. src/BehaviorPrediction.cpp
  29. src/BehaviorStateMachine.cpp
  30. src/DecisionMaker.cpp
  31. src/LocalPlannerH.cpp
  32. src/MappingHelpers.cpp
  33. src/MatrixOperations.cpp
  34. src/PassiveDecisionMaker.cpp
  35. src/PlannerH.cpp
  36. src/PlannerH.cpp
  37. src/PlannerH.cpp
  38. src/PlannerH.cpp
  39. src/PlannerH.cpp
  40. src/PlanningHelpers.cpp
  41. src/PlanningHelpers.cpp
  42. src/PlanningHelpers.cpp
  43. src/PlanningHelpers.cpp
  44. src/PlanningHelpers.cpp
  45. src/SimuDecisionMaker.cpp
  46. src/TrajectoryCosts.cpp
  47. src/TrajectoryDynamicCosts.cpp
  48. )
  49. ## Declare a cpp library
  50. add_library(${PROJECT_NAME}
  51. ${PLANNERH_SRC}
  52. )
  53. target_link_libraries(${PROJECT_NAME}
  54. ${catkin_LIBRARIES}
  55. ${TinyXML_LIBRARIES}
  56. )
  57. install(DIRECTORY include/${PROJECT_NAME}/
  58. DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  59. FILES_MATCHING PATTERN "*.h"
  60. )
  61. install(TARGETS op_planner
  62. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  63. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  64. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  65. )