CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. cmake_minimum_required(VERSION 3.5)
  2. project(rtklib_bridge)
  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. include_directories(include)
  17. ament_auto_add_executable(rtklib_bridge src/rtklib_bridge.cpp)
  18. install(TARGETS rtklib_bridge
  19. DESTINATION lib/${PROJECT_NAME}
  20. )
  21. install(DIRECTORY param launch
  22. DESTINATION share/${PROJECT_NAME}
  23. )
  24. if(BUILD_TESTING)
  25. find_package(ament_lint_auto REQUIRED)
  26. # the following line skips the linter which checks for copyrights
  27. # uncomment the line when a copyright and license is not present in all source files
  28. #set(ament_cmake_copyright_FOUND TRUE)
  29. # the following line skips cpplint (only works in a git repo)
  30. # uncomment the line when this package is not in a git repo
  31. #set(ament_cmake_cpplint_FOUND TRUE)
  32. ament_lint_auto_find_test_dependencies()
  33. endif()
  34. ament_auto_package()