CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. cmake_minimum_required(VERSION 3.5)
  2. project(rtklib_msgs)
  3. # Default to C99
  4. if(NOT CMAKE_C_STANDARD)
  5. set(CMAKE_C_STANDARD 99)
  6. endif()
  7. # Default to Cﭞ
  8. if(NOT CMAKE_CXX_STANDARD)
  9. set(CMAKE_CXX_STANDARD 14)
  10. endif()
  11. if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  12. add_compile_options(-Wall -Wextra -Wpedantic)
  13. endif()
  14. find_package(ament_cmake_auto REQUIRED)
  15. ament_auto_find_build_dependencies()
  16. rosidl_generate_interfaces(${PROJECT_NAME}
  17. "msg/RtklibNav.msg"
  18. DEPENDENCIES std_msgs
  19. DEPENDENCIES sensor_msgs
  20. DEPENDENCIES geometry_msgs
  21. DEPENDENCIES builtin_interfaces
  22. )
  23. if(BUILD_TESTING)
  24. find_package(ament_lint_auto REQUIRED)
  25. # the following line skips the linter which checks for copyrights
  26. # uncomment the line when a copyright and license is not present in all source files
  27. #set(ament_cmake_copyright_FOUND TRUE)
  28. # the following line skips cpplint (only works in a git repo)
  29. # uncomment the line when this package is not in a git repo
  30. #set(ament_cmake_cpplint_FOUND TRUE)
  31. ament_lint_auto_find_test_dependencies()
  32. endif()
  33. ament_auto_package()