Skip to content

Commit

Permalink
Add task sequence AMENT_PREFIX_PATH too (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Bainian <[email protected]>
  • Loading branch information
Briancbn authored Feb 15, 2022
1 parent 8d98251 commit cb367f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rmf_task_sequence/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ export(
NAMESPACE rmf_task_sequence::
)

# Export ament index path
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)

file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/ament_prefix_path.dsv "prepend-non-duplicate;AMENT_PREFIX_PATH;")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/ament_prefix_path.dsv DESTINATION share/${PROJECT_NAME}/hook)
5 changes: 5 additions & 0 deletions rmf_task_sequence/colcon.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": [
"share/rmf_task_sequence/hook/ament_prefix_path.dsv",
]
}

0 comments on commit cb367f9

Please sign in to comment.