summaryrefslogtreecommitdiff
path: root/generate-parameter-library-example-fix-install-name.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-08 13:06:36 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-08 13:06:36 +0000
commit02ce126e43258f9fb0d9a1169ec72ec69c610ac4 (patch)
treed293ae2d3f270c8b17e0a13648a849111b3d40f0 /generate-parameter-library-example-fix-install-name.patch
parent3776192c1896b0268f755e00f477eb148c0811eb (diff)
automatic import of ros-humble-generate-parameter-library-exampleopeneuler24.03_LTS
Diffstat (limited to 'generate-parameter-library-example-fix-install-name.patch')
-rw-r--r--generate-parameter-library-example-fix-install-name.patch76
1 files changed, 76 insertions, 0 deletions
diff --git a/generate-parameter-library-example-fix-install-name.patch b/generate-parameter-library-example-fix-install-name.patch
new file mode 100644
index 0000000..5ae4a77
--- /dev/null
+++ b/generate-parameter-library-example-fix-install-name.patch
@@ -0,0 +1,76 @@
+diff -Naur ros-humble-generate-parameter-library-example-0.3.3/CMakeLists.txt ros-humble-generate-parameter-library-example-0.3.3.bk/CMakeLists.txt
+--- ros-humble-generate-parameter-library-example-0.3.3/CMakeLists.txt 2023-04-14 11:42:15.000000000 +0800
++++ ros-humble-generate-parameter-library-example-0.3.3.bk/CMakeLists.txt 2024-06-22 21:52:24.060412848 +0800
+@@ -6,72 +6,9 @@
+ find_package(rclcpp REQUIRED)
+ find_package(rclcpp_components REQUIRED)
+
+-generate_parameter_library(admittance_controller_parameters
+- src/parameters.yaml
+- include/generate_parameter_library_example/example_validators.hpp
+-)
+-
+-add_library(minimal_publisher SHARED
+- src/minimal_publisher.cpp
+-)
+-target_include_directories(minimal_publisher PUBLIC
+- $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
+- $<INSTALL_INTERFACE:include/generate_parameter_library_example>
+-)
+-target_link_libraries(minimal_publisher
+- PUBLIC
+- admittance_controller_parameters
+- rclcpp::rclcpp
+- rclcpp_components::component
+-)
+-rclcpp_components_register_node(minimal_publisher
+- PLUGIN "admittance_controller::MinimalPublisher"
+- EXECUTABLE test_node
+-)
+-
+-if(BUILD_TESTING)
+- find_package(ament_lint_auto REQUIRED)
+- set(ament_cmake_cpplint_FOUND TRUE) # Conflicts with clang-foramt
+- set(ament_cmake_flake8_FOUND TRUE) # Conflicts with black
+- set(ament_cmake_uncrustify_FOUND TRUE) # Conflicts with clang-format
+- ament_lint_auto_find_test_dependencies()
+-
+- find_package(ament_cmake_gtest REQUIRED)
+- # example_test_gtest
+- add_rostest_with_parameters_gtest(test_example_gtest test/example_test_gtest.cpp
+- ${CMAKE_CURRENT_SOURCE_DIR}/test/example_params.yaml)
+- target_include_directories(test_example_gtest PRIVATE include)
+- target_link_libraries(test_example_gtest admittance_controller_parameters rclcpp::rclcpp)
+- # descriptor_test_gtest
+- add_rostest_with_parameters_gtest(test_descriptor_gtest test/descriptor_test_gtest.cpp
+- ${CMAKE_CURRENT_SOURCE_DIR}/test/example_params.yaml)
+- target_include_directories(test_descriptor_gtest PRIVATE include)
+- target_link_libraries(test_descriptor_gtest admittance_controller_parameters rclcpp::rclcpp)
+-
+- find_package(ament_cmake_gmock REQUIRED)
+- add_rostest_with_parameters_gmock(test_example_gmock test/example_test_gmock.cpp
+- ${CMAKE_CURRENT_SOURCE_DIR}/test/example_params.yaml)
+- target_include_directories(test_example_gmock PRIVATE include)
+- target_link_libraries(test_example_gmock admittance_controller_parameters rclcpp::rclcpp)
+-endif()
+-
+ install(
+ DIRECTORY include/
+ DESTINATION include/generate_parameter_library_example
+ )
+
+-install(TARGETS minimal_publisher admittance_controller_parameters
+- EXPORT export_generate_parameter_library_example
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib
+- RUNTIME DESTINATION bin
+-)
+-
+-install(
+- TARGETS test_node
+- DESTINATION lib/generate_parameter_library_example
+-)
+-
+-ament_export_targets(export_generate_parameter_library_example HAS_LIBRARY_TARGET)
+-ament_export_dependencies(rclcpp rclcpp_components)
+ ament_package()