From 225b636acc622fd553b7e397a54efe81ce5970bb Mon Sep 17 00:00:00 2001 From: Naman Malik Date: Wed, 4 Sep 2024 23:24:58 +0530 Subject: [PATCH] CmakeList changes for env hooks and plugins (#46) --- custom_gz_plugins/CMakeLists.txt | 12 ++++++++++++ custom_gz_plugins/hooks/simulation.dsv.in | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/custom_gz_plugins/CMakeLists.txt b/custom_gz_plugins/CMakeLists.txt index 452e213e..9d835cca 100644 --- a/custom_gz_plugins/CMakeLists.txt +++ b/custom_gz_plugins/CMakeLists.txt @@ -23,4 +23,16 @@ if(BUILD_TESTING) ament_lint_auto_find_test_dependencies() endif() +install( + DIRECTORY + src + DESTINATION + share/${PROJECT_NAME}/ +) + +add_subdirectory(src/DayLightManager) +add_subdirectory(src/DustManager) + +ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/hooks/${PROJECT_NAME}.dsv.in") + ament_package() diff --git a/custom_gz_plugins/hooks/simulation.dsv.in b/custom_gz_plugins/hooks/simulation.dsv.in index ccc31f6b..06537f27 100644 --- a/custom_gz_plugins/hooks/simulation.dsv.in +++ b/custom_gz_plugins/hooks/simulation.dsv.in @@ -1,2 +1,2 @@ prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share -prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share/simulation/models +prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share/custom_gz_plugins_pkg/models