Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ project(gz_led_plugin)

# Vendored from https://github.com/jasmeet0915/gz_sim_led_plugin with a local
# patch (see src/LedPlugin.cpp) so identical model instances don't collide on
# scoped visual/light names. Built for Gazebo Harmonic (gz-sim8), matching the
# versions the existing dave_gz_world_plugins package uses in this workspace.
# scoped visual/light names. Built for Gazebo Harmonic (gz-sim8)

find_package(ament_cmake REQUIRED)
find_package(gz-cmake3 REQUIRED)
Expand Down Expand Up @@ -42,6 +41,8 @@ install(
)

# Put libgz_led_plugin.so on GZ_SIM_SYSTEM_PLUGIN_PATH when the workspace is sourced.
set(AMENT_CMAKE_ENVIRONMENT_HOOKS_DESC_gz_led_plugin
"prepend-non-duplicate;GZ_SIM_SYSTEM_PLUGIN_PATH;lib")
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env_hooks/gz_led_plugin.sh.in")

ament_package()
2 changes: 1 addition & 1 deletion env_hooks/gz_led_plugin.sh.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export GZ_SIM_SYSTEM_PLUGIN_PATH="@CMAKE_INSTALL_PREFIX@/lib:${GZ_SIM_SYSTEM_PLUGIN_PATH}"
ament_prepend_unique_value GZ_SIM_SYSTEM_PLUGIN_PATH "$AMENT_CURRENT_PREFIX/lib"