[ros-users] [Discourse.ros.org] [Next Generation ROS] Make A…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Loïc Dauphin via ros-users
Dato:  
Til: ros-users
Emne: [ros-users] [Discourse.ros.org] [Next Generation ROS] Make Ament work with another build system (for cross-compilation)


Let's see with an example :
```CMake
cmake_minimum_required(VERSION 3.5)
project(talker_c)

find_package(ament_cmake REQUIRED)
find_package(rclc REQUIRED)
find_package(std_msgs REQUIRED)

find_package(rosidl_typesupport_test REQUIRED)

install(
FILES main.c
DESTINATION ${PROJECT_NAME}
)

ament_package()
```

If I understand well, it's the `ament_package()` call that fills the variables, isn't it ?

As you can see, there is 4 dependencies (ament_cmake, rclc, std_msgs, rosidl_typesupport_test). How can I extract these 4 dependencies from a variable ? I want something like `${talker_c_DEPENDENCIES}` that gives me the list of dependencies of the project (extracted from the package.xml or anything) on which I could iterate with "foreach".

I don't want to get rid of the `find_package(...)` calls, I just want to be able to display the list just after `ament_package`.





---
[Visit Topic](https://discourse.ros.org/t/make-ament-work-with-another-build-system-for-cross-compilation/2382/7) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>