rmp220_middleware/CMakeLists.txt

35 lines
841 B
CMake
Raw Normal View History

2025-01-15 17:41:33 +00:00
cmake_minimum_required(VERSION 3.0.2)
2023-08-11 10:42:57 +00:00
project(rmp220_middleware)
2025-01-15 17:41:33 +00:00
# Set compiler options for warnings
2023-08-11 10:42:57 +00:00
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
2025-01-15 17:41:33 +00:00
# Find catkin and required components
find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
geometry_msgs
sensor_msgs
segway_msgs
)
2023-08-11 10:42:57 +00:00
2025-01-15 17:41:33 +00:00
# Declare catkin package
catkin_package(
CATKIN_DEPENDS rospy std_msgs geometry_msgs sensor_msgs segway_msgs
)
# Install Python scripts
catkin_install_python(PROGRAMS
rmp220_middleware/rmp220_middleware.py # Replace with the actual script path
2025-01-16 12:25:03 +00:00
rmp220_middleware/rmp220_middleware_extended.py
2025-01-15 17:41:33 +00:00
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
2023-08-11 10:42:57 +00:00
2025-01-15 17:41:33 +00:00
# Testing (optional)
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
# Add tests here if needed
endif()