CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(ymc)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(
  5. catkin REQUIRED COMPONENTS
  6. autoware_msgs
  7. ds4_msgs
  8. geometry_msgs
  9. ros_observer
  10. rosconsole
  11. roscpp
  12. )
  13. catkin_package()
  14. IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
  15. set(LIB_ARCH _aarch64)
  16. ELSE()
  17. unset(LIB_ARCH)
  18. ENDIF()
  19. include_directories(
  20. include
  21. ${catkin_INCLUDE_DIRS}
  22. )
  23. add_executable(g30esli_interface
  24. node/g30esli_interface/g30esli_ros.cpp
  25. node/g30esli_interface/g30esli_interface.cpp
  26. node/g30esli_interface/g30esli_interface_node.cpp
  27. )
  28. add_dependencies(g30esli_interface
  29. ${catkin_EXPORTED_TARGETS}
  30. )
  31. target_link_libraries(g30esli_interface
  32. ${catkin_LIBRARIES}
  33. ${CMAKE_CURRENT_SOURCE_DIR}/lib/libg30esli${LIB_ARCH}.a
  34. )
  35. install(TARGETS g30esli_interface
  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 scripts/
  45. DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts
  46. USE_SOURCE_PERMISSIONS
  47. PATTERN ".svn" EXCLUDE
  48. )