cmake_minimum_required(VERSION 3.10)
project(genie_robot)

# NOTE (G2 port): the upstream CMakeLists.txt (AGIBOT-provided) declared
# find_package(urdf REQUIRED) / find_package(xacro REQUIRED) here, but this
# package only installs static files below -- it never actually invokes
# urdf/xacro CMake macros. Removed so this package builds without needing
# the `xacro` ROS2 package installed at build time (unavailable offline on
# this robot's isolated debug network -- see docs/G2_PORT_NOTES.md). Runtime
# xacro processing (by g2_description/robot_webserver, which call the
# `xacro` executable directly via subprocess) is unaffected by this.
find_package(ament_cmake REQUIRED)

# Install directories
install(
  DIRECTORY launch meshes urdf rviz
  DESTINATION share/${PROJECT_NAME}
)

# Install launch files
install(DIRECTORY
  launch
  DESTINATION share/${PROJECT_NAME}
)

# Install URDF files
install(DIRECTORY
  urdf
  DESTINATION share/${PROJECT_NAME}
)

# Install mesh files
install(DIRECTORY
  meshes
  DESTINATION share/${PROJECT_NAME}
)

# Install RViz config files
install(DIRECTORY
  rviz
  DESTINATION share/${PROJECT_NAME}
)

ament_package()
