CMakeLists.txt 941 B

1234567891011121314151617181920212223242526272829303132333435
  1. cmake_minimum_required(VERSION 3.8)
  2. project(hexarob_description)
  3. if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  4. add_compile_options(-Wall -Wextra -Wpedantic)
  5. endif()
  6. # find dependencies
  7. find_package(ament_cmake REQUIRED)
  8. find_package(urdf REQUIRED)
  9. find_package(xacro REQUIRED)
  10. if(BUILD_TESTING)
  11. find_package(ament_lint_auto REQUIRED)
  12. # the following line skips the linter which checks for copyrights
  13. # comment the line when a copyright and license is added to all source files
  14. set(ament_cmake_copyright_FOUND TRUE)
  15. # the following line skips cpplint (only works in a git repo)
  16. # comment the line when this package is in a git repo and when
  17. # a copyright and license is added to all source files
  18. set(ament_cmake_cpplint_FOUND TRUE)
  19. ament_lint_auto_find_test_dependencies()
  20. endif()
  21. install(
  22. DIRECTORY
  23. rviz
  24. launch
  25. hexarob
  26. DESTINATION
  27. share/${PROJECT_NAME}/
  28. )
  29. ament_package()