From 82422a6387d56e4eb669fbfd77c7047ff9768838 Mon Sep 17 00:00:00 2001 From: Matt Reynolds Date: Sat, 4 Apr 2020 22:14:02 -0400 Subject: [PATCH 1/2] Cleanup CMakeLists.txt and package.xml --- CMakeLists.txt | 44 ++++++++++++++++++++++++++++---------------- package.xml | 12 ++++++------ 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a880446..49ea2fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,40 +1,52 @@ cmake_minimum_required(VERSION 2.8.3) project(urdf_geometry_parser) -set(${PROJECT_NAME}_CATKIN_DEPS roscpp urdf tf2) - -find_package(catkin REQUIRED COMPONENTS ${${PROJECT_NAME}_CATKIN_DEPS}) +# Load catkin and all dependencies required for this package +find_package(catkin REQUIRED COMPONENTS + roscpp + tf2 + urdf +) +# Declare a catkin package catkin_package( - INCLUDE_DIRS include - LIBRARIES ${PROJECT_NAME} - CATKIN_DEPENDS ${${PROJECT_NAME}_CATKIN_DEPS} + INCLUDE_DIRS + include + LIBRARIES + ${PROJECT_NAME} + CATKIN_DEPENDS + roscpp + urdf ) + ########### ## Build ## ########### -include_directories( - include ${catkin_INCLUDE_DIRS} -) +# Specify header include paths +include_directories(include ${catkin_INCLUDE_DIRS}) -## Declare a C++ library +# URDF geometry parser library add_library(${PROJECT_NAME} - src/${PROJECT_NAME}.cpp + include/urdf_geometry_parser/urdf_geometry_parser.h + src/urdf_geometry_parser.cpp ) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) + ############# ## Install ## ############# +# Install headers +install(DIRECTORY include/${PROJECT_NAME}/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} +) + +# Install targets install(TARGETS ${PROJECT_NAME} 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} + RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION} ) diff --git a/package.xml b/package.xml index 0565fd3..3954220 100644 --- a/package.xml +++ b/package.xml @@ -1,23 +1,23 @@ - urdf_geometry_parser 0.0.3 - Extract geometry value of a vehicle from urdf + Extract geometry value of a vehicle from urdf. Vincent Rousseau Bence Magyar BSD - Vincent Rousseau - http://ros.org/wiki/urdf_geometry_parser - https://github.com/ros-controls/urdf_geometry_parser.git https://github.com/ros-controls/urdf_geometry_parser/issues + https://github.com/ros-controls/urdf_geometry_parser.git + + Vincent Rousseau catkin + roscpp urdf - tf2 + tf2 From 3c23670711c3661c23f9c1e37b3748f4b192e9bf Mon Sep 17 00:00:00 2001 From: Matt Reynolds Date: Sat, 4 Apr 2020 22:16:15 -0400 Subject: [PATCH 2/2] Bump CMake version to avoid CMP0048 warning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49ea2fc..8e73196 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.0.2) project(urdf_geometry_parser) # Load catkin and all dependencies required for this package