cmake_minimum_required(VERSION 3.8)
project(student_pkg)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(geometry_msgs REQUIRED)
# the Studica driver, already built and installed on the robot; build.sh puts it on the path
find_package(studica_control REQUIRED)

# each executable is one node; add more with add_executable + ament_target_dependencies and
# list them in install(TARGETS ...) below
add_executable(robot_node src/robot_node.cpp)
ament_target_dependencies(robot_node rclcpp geometry_msgs studica_control)

install(TARGETS robot_node DESTINATION lib/${PROJECT_NAME})

ament_package()
