diff --git a/custom_gz_plugins/CMakeLists.txt b/custom_gz_plugins/CMakeLists.txt index 1372b663..680d6091 100644 --- a/custom_gz_plugins/CMakeLists.txt +++ b/custom_gz_plugins/CMakeLists.txt @@ -32,4 +32,6 @@ if(BUILD_TESTING) ament_lint_auto_find_test_dependencies() endif() +ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env_hooks/${PROJECT_NAME}.dsv.in") + ament_package() diff --git a/custom_gz_plugins/env_hooks/custom_gz_plugins.dsv.in b/custom_gz_plugins/env_hooks/custom_gz_plugins.dsv.in new file mode 100644 index 00000000..65bffe3e --- /dev/null +++ b/custom_gz_plugins/env_hooks/custom_gz_plugins.dsv.in @@ -0,0 +1,2 @@ +prepend-non-duplicate;GZ_SIM_SYSTEM_PLUGIN_PATH;lib +prepend-non-duplicate;GZ_GUI_PLUGIN_PATH;lib \ No newline at end of file