Skip to content

Commit

Permalink
Put binary "zenoh-bridge-dds" into bin folder while colcon build (ecl…
Browse files Browse the repository at this point in the history
…ipse-zenoh#134)

Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary authored Aug 7, 2023
1 parent f79a707 commit 25230a1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ add_custom_target(
${RUST_TARGET_DIR}/release/zenoh-bridge-dds
)

install(FILES
${RUST_TARGET_DIR}/release/zenoh-bridge-dds
RENAME zenoh_bridge_dds
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
DESTINATION lib/${PROJECT_NAME}
)
macro(INSTALL_ZENOH src_path dst_path)
install(FILES
${src_path}
RENAME zenoh_bridge_dds
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
DESTINATION ${dst_path}
)
endmacro(INSTALL_ZENOH)

INSTALL_ZENOH(${RUST_TARGET_DIR}/release/zenoh-bridge-dds lib/${PROJECT_NAME})

INSTALL_ZENOH(${RUST_TARGET_DIR}/release/zenoh-bridge-dds bin)

ament_package()

0 comments on commit 25230a1

Please sign in to comment.