Cmake infrastructure for creating components (#784)
*cmake macro to create components for libraries with multiple nodes Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
This commit is contained in:
parent
cd063575ff
commit
b214324bf2
4 changed files with 127 additions and 2 deletions
|
@ -41,6 +41,11 @@ ament_target_dependencies(component_container
|
|||
"rclcpp"
|
||||
)
|
||||
|
||||
set(node_main_template_install_dir "share/${PROJECT_NAME}")
|
||||
install(FILES
|
||||
src/node_main.cpp.in
|
||||
DESTINATION ${node_main_template_install_dir})
|
||||
|
||||
add_executable(
|
||||
component_container_mt
|
||||
src/component_container_mt.cpp
|
||||
|
@ -119,4 +124,4 @@ install(
|
|||
ament_export_include_directories(include)
|
||||
ament_export_dependencies(class_loader)
|
||||
ament_export_dependencies(rclcpp)
|
||||
ament_package(CONFIG_EXTRAS rclcpp_components-extras.cmake)
|
||||
ament_package(CONFIG_EXTRAS rclcpp_components-extras.cmake.in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue