CMakeLists.txt 956 B

123456789101112131415161718192021222324252627282930313233343536
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(udon_socket)
  3. find_package(autoware_build_flags REQUIRED)
  4. find_package(catkin REQUIRED COMPONENTS
  5. roscpp
  6. tablet_socket_msgs
  7. )
  8. set(CMAKE_CXX_FLAGS "-O2 -Wall ${CMAKE_CXX_FLAGS}")
  9. catkin_package(
  10. INCLUDE_DIRS include
  11. LIBRARIES udon
  12. CATKIN_DEPENDS tablet_socket_msgs
  13. )
  14. include_directories(
  15. include
  16. ${catkin_INCLUDE_DIRS}
  17. )
  18. add_library(udon lib/udon_socket/udon.cpp)
  19. add_executable(udon_receiver nodes/udon_receiver/udon_receiver.cpp)
  20. target_link_libraries(udon_receiver udon ${catkin_LIBRARIES})
  21. add_executable(udon_sender nodes/udon_sender/udon_sender.cpp)
  22. target_link_libraries(udon_sender udon ${catkin_LIBRARIES})
  23. add_dependencies(udon_sender ${catkin_EXPORTED_TARGETS})
  24. install(TARGETS udon udon_receiver udon_sender
  25. ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  26. LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  27. RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  28. )