Skip to content

Commit

Permalink
fixed path for node_main
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
  • Loading branch information
skucheria committed Jul 17, 2019
1 parent 61d9b17 commit 26fcfc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions rclcpp_components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ ament_target_dependencies(component_container
"rclcpp"
)

install(FILES
src/node_main.cpp.in
DESTINATION ${PROJECT_BINARY_DIR}
)

add_executable(
component_container_mt
src/component_container_mt.cpp
Expand Down
7 changes: 4 additions & 3 deletions rclcpp_components/cmake/rclcpp_components_register_node.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ macro(rclcpp_components_register_node target)
set(_RCLCPP_COMPONENTS__NODES
"${_RCLCPP_COMPONENTS__NODES}${component};${_path}/$<TARGET_FILE_NAME:${target}>\n")
set(CLASS_NAME ${component})
configure_file(../../rclcpp/rclcpp_components/src/node_main.cpp.in
../../rclcpp/rclcpp_components/src/node_main_${node}.cpp @ONLY)
add_executable(${node} ../../rclcpp/rclcpp_components/src/node_main_${node}.cpp)
set(build_dir ${PROJECT_BINARY_DIR}/../rclcpp_components)
configure_file(${build_dir}/node_main.cpp.in
${build_dir}/node_main_${node}.cpp @ONLY)
add_executable(${node} ${build_dir}/node_main_${node}.cpp)
set(lib ${target})
# Needed so symbols aren't dropped if not usesd
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Expand Down

0 comments on commit 26fcfc2

Please sign in to comment.