From f76086ffa1b481e2caf8259800d3590845595913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 9 Dec 2021 12:58:29 +0100 Subject: [PATCH] microRTPS_agent_CMakeLists.txt.em: add install section --- msg/templates/urtps/microRTPS_agent_CMakeLists.txt.em | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +)