cmake_minimum_required(VERSION 3.1.0)

project(rc_reason_clients)
include(cmake/project_version.cmake)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  rospy rc_reason_msgs
)

catkin_python_setup()

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES rc_msgs
  CATKIN_DEPENDS message_runtime rc_reason_msgs
#  DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
)

# install node wrappers
catkin_install_python(PROGRAMS
  scripts/rc_hand_eye_calibration_client
  scripts/rc_april_tag_detect_client
  scripts/rc_qr_code_detect_client
  scripts/rc_boxpick_client
  scripts/rc_itempick_client
  scripts/rc_silhouettematch_client
  scripts/rc_load_carrier_client
  scripts/rc_cadmatch_client
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

######################################
## Define information for packaging ##
######################################
# optionally specify dependencies of the debian package here (comma separated!)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "ros-$ENV{ROS_DISTRO}-rc-reason-msgs")
include(cmake/package_debian.cmake)
