File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ if(NOT EXISTS "${APP_COLCON_META}")
1313set (APP_COLCON_META "" )
1414endif ()
1515
16+ set (EXTRA_ROS_PACKAGES "${PROJECT_DIR} /extra_ros_packages" )
17+ if (NOT EXISTS "${EXTRA_ROS_PACKAGES} " )
18+ set (EXTRA_ROS_PACKAGES "${COMPONENT_DIR} /extra_packages" )
19+ endif ()
20+
1621externalproject_add (libmicroros_project
1722 PREFIX ${CMAKE_BINARY_DIR} /libmicroros-prefix
1823 SOURCE_DIR ${COMPONENT_DIR}
@@ -32,6 +37,7 @@ externalproject_add(libmicroros_project
3237 APP_COLCON_META=${APP_COLCON_META}
3338 IDF_VERSION_MAJOR=${IDF_VERSION_MAJOR}
3439 IDF_VERSION_MINOR=${IDF_VERSION_MINOR}
40+ EXTRA_ROS_PACKAGES=${EXTRA_ROS_PACKAGES}
3541 INSTALL_COMMAND ""
3642 BUILD_BYPRODUCTS ${COMPONENT_DIR} /libmicroros.a
3743 )
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ $(EXTENSIONS_DIR)/micro_ros_src/src:
7373 touch src/rcl_logging/rcl_logging_spdlog/COLCON_IGNORE; \
7474 touch src/rclc/rclc_examples/COLCON_IGNORE; \
7575 touch src/rcl/rcl_yaml_param_parser/COLCON_IGNORE; \
76- cp -rf ../extra_packages src/extra_packages || :;
76+ cp -rf $(EXTRA_ROS_PACKAGES) src/extra_packages || :; \
77+ test -f src/extra_packages/extra_packages.repos && cd src/extra_packages && vcs import --input extra_packages.repos || :;
7778
7879
7980$(EXTENSIONS_DIR ) /micro_ros_src/install : $(EXTENSIONS_DIR ) /esp32_toolchain.cmake $(EXTENSIONS_DIR ) /micro_ros_dev/install $(EXTENSIONS_DIR ) /micro_ros_src/src
You can’t perform that action at this time.
0 commit comments