|
@@ -10,12 +10,12 @@ set(gem_path ${CMAKE_CURRENT_LIST_DIR})
|
|
|
set(gem_json ${gem_path}/gem.json)
|
|
|
o3de_restricted_path(${gem_json} gem_restricted_path gem_parent_relative_path)
|
|
|
|
|
|
-# Currently we are in the ROS2-Gem-Demo/Gem folder: ${CMAKE_CURRENT_LIST_DIR}
|
|
|
+# Currently we are in the RobotVacuumSample/Gem folder: ${CMAKE_CURRENT_LIST_DIR}
|
|
|
# Get the platform specific folder ${pal_dir} for the current folder: ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME}
|
|
|
# Note: o3de_pal_dir will take care of the details for us, as this may be a restricted platform
|
|
|
# in which case it will see if that platform is present here or in the restricted folder.
|
|
|
-# i.e. It could here : ROS2-Gem-Demo/Gem/Platform/<platform_name> or
|
|
|
-# <restricted_folder>/<platform_name>/ROS2-Gem-Demo/Gem
|
|
|
+# i.e. It could here : RobotVacuumSample/Gem/Platform/<platform_name> or
|
|
|
+# <restricted_folder>/<platform_name>/RobotVacuumSample/Gem
|
|
|
o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
|
|
|
|
|
|
# Now that we have the platform abstraction layer (PAL) folder for this folder, thats where we will find the
|
|
@@ -30,15 +30,15 @@ if(NOT PAL_TRAIT_ROBOT_VACUUM_SAMPLE_SUPPORTED)
|
|
|
return()
|
|
|
endif()
|
|
|
|
|
|
-# We are on a supported platform, so add the ROS2-Gem-Demo target
|
|
|
-# Note: We include the common files and the platform specific files which are set in ros2-gem-demo_files.cmake and
|
|
|
-# in ${pal_dir}/ros2-gem-demo_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
+# We are on a supported platform, so add the RobotVacuumSample target
|
|
|
+# Note: We include the common files and the platform specific files which are set in robot-vacuum-sample_files.cmake and
|
|
|
+# in ${pal_dir}/robot_vacuum_sample_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
ly_add_target(
|
|
|
- NAME ROS2-Gem-Demo.Static STATIC
|
|
|
+ NAME RobotVacuumSample.Static STATIC
|
|
|
NAMESPACE Gem
|
|
|
FILES_CMAKE
|
|
|
- ros2-gem-demo_files.cmake
|
|
|
- ${pal_dir}/ros2-gem-demo_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
+ robot_vacuum_sample_files.cmake
|
|
|
+ ${pal_dir}/robot_vacuum_sample_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
INCLUDE_DIRECTORIES
|
|
|
PUBLIC
|
|
|
Include
|
|
@@ -49,29 +49,29 @@ ly_add_target(
|
|
|
)
|
|
|
|
|
|
ly_add_target(
|
|
|
- NAME ROS2-Gem-Demo ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
|
|
|
+ NAME RobotVacuumSample ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
|
|
|
NAMESPACE Gem
|
|
|
FILES_CMAKE
|
|
|
- ros2-gem-demo_shared_files.cmake
|
|
|
- ${pal_dir}/ros2-gem-demo_shared_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
+ robot_vacuum_sample_shared_files.cmake
|
|
|
+ ${pal_dir}/robot_vacuum_sample_shared_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
|
|
INCLUDE_DIRECTORIES
|
|
|
PUBLIC
|
|
|
Include
|
|
|
BUILD_DEPENDENCIES
|
|
|
PRIVATE
|
|
|
- Gem::ROS2-Gem-Demo.Static
|
|
|
+ Gem::RobotVacuumSample.Static
|
|
|
AZ::AzCore
|
|
|
)
|
|
|
|
|
|
-# if enabled, ROS2-Gem-Demo is used by all kinds of applications
|
|
|
-ly_create_alias(NAME ROS2-Gem-Demo.Builders NAMESPACE Gem TARGETS Gem::ROS2-Gem-Demo)
|
|
|
-ly_create_alias(NAME ROS2-Gem-Demo.Tools NAMESPACE Gem TARGETS Gem::ROS2-Gem-Demo)
|
|
|
-ly_create_alias(NAME ROS2-Gem-Demo.Clients NAMESPACE Gem TARGETS Gem::ROS2-Gem-Demo)
|
|
|
-ly_create_alias(NAME ROS2-Gem-Demo.Servers NAMESPACE Gem TARGETS Gem::ROS2-Gem-Demo)
|
|
|
+# if enabled, RobotVacuumSample is used by all kinds of applications
|
|
|
+ly_create_alias(NAME RobotVacuumSample.Builders NAMESPACE Gem TARGETS Gem::RobotVacuumSample)
|
|
|
+ly_create_alias(NAME RobotVacuumSample.Tools NAMESPACE Gem TARGETS Gem::RobotVacuumSample)
|
|
|
+ly_create_alias(NAME RobotVacuumSample.Clients NAMESPACE Gem TARGETS Gem::RobotVacuumSample)
|
|
|
+ly_create_alias(NAME RobotVacuumSample.Servers NAMESPACE Gem TARGETS Gem::RobotVacuumSample)
|
|
|
|
|
|
################################################################################
|
|
|
# Gem dependencies
|
|
|
################################################################################
|
|
|
|
|
|
# Enable the specified list of gems from GEM_FILE or GEMS list for this specific project:
|
|
|
-ly_enable_gems(PROJECT_NAME ROS2-Gem-Demo GEM_FILE enabled_gems.cmake)
|
|
|
+ly_enable_gems(PROJECT_NAME RobotVacuumSample GEM_FILE enabled_gems.cmake)
|