Skip to content

Commit

Permalink
Added install to ground bridge.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrowne15 committed Oct 24, 2024
1 parent 156dbf0 commit 8dfa042
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions communications/ground_dds_ros_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,36 @@ add_executable(ground_dds_ros_bridge_node
add_dependencies(ground_dds_ros_bridge_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(ground_dds_ros_bridge_node ground_dds_ros_bridge ${catkin_LIBRARIES})

#############
## Install ##
#############
# Determine our module name
get_filename_component(MODULE_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

install(CODE "execute_process(
COMMAND mkdir -p share/${MODULE_NAME}
COMMAND ln -s ../../bin/ground_dds_ros_bridge share/${MODULE_NAME}
WORKING_DIRECOTRY ${CMAKE_INSTALL_PREFIX}
OUTPUT_QUIET
ERROR_QUIET
)")

# Mark libraries for installation
install(TARGETS ground_dds_ros_bridge
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

# Mark nodelet_plugin for installation
#install(FILES nodelet_plugins.xml
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
#)

# Mark launch files for installation
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
else (USE_DDS)
find_package(catkin REQUIRED COMPONENTS)
catkin_package()
Expand Down

0 comments on commit 8dfa042

Please sign in to comment.