diff --git a/msg/templates/urtps/microRTPS_agent_CMakeLists.txt.em b/msg/templates/urtps/microRTPS_agent_CMakeLists.txt.em index e76759380a..f75d13f5d1 100644 --- a/msg/templates/urtps/microRTPS_agent_CMakeLists.txt.em +++ b/msg/templates/urtps/microRTPS_agent_CMakeLists.txt.em @@ -53,3 +53,11 @@ endif() file(GLOB MICRORTPS_AGENT_SOURCES src/*.cpp src/*.h) add_executable(micrortps_agent ${MICRORTPS_AGENT_SOURCES}) target_link_libraries(micrortps_agent fastrtps fastcdr) + +# Install to '/usr/local/bin' if `make install` is used +install( + TARGETS micrortps_agent + ARCHIVE DESTINATION lib + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib +)