From 8c8013e33d9cb80cb88d36446cec78a9a0809067 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Mon, 20 Nov 2023 14:24:08 +0100 Subject: [PATCH] merge #226 --- franka_hw/CMakeLists.txt | 17 +++++++++++++++++ franka_ros/CMakeLists.txt | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/franka_hw/CMakeLists.txt b/franka_hw/CMakeLists.txt index d7888a831..0703c983e 100644 --- a/franka_hw/CMakeLists.txt +++ b/franka_hw/CMakeLists.txt @@ -75,6 +75,17 @@ if (Franka_VERSION GREATER_EQUAL 0.9) target_compile_definitions(franka_hw PUBLIC ENABLE_BASE_ACCELERATION) endif() +## Installation +install(TARGETS franka_hw + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +) + +install(DIRECTORY include/${PROJECT_NAME}/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} +) + ## franka_control_services add_library(franka_control_services src/services.cpp @@ -98,6 +109,12 @@ target_include_directories(franka_control_services PUBLIC include ) +install(TARGETS franka_control_services + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +) + if(CATKIN_ENABLE_TESTING) add_subdirectory(test) endif() diff --git a/franka_ros/CMakeLists.txt b/franka_ros/CMakeLists.txt index 3bbd61f39..680baafd5 100644 --- a/franka_ros/CMakeLists.txt +++ b/franka_ros/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.4) project(franka_ros) find_package(catkin REQUIRED) catkin_metapackage()