[ros-users] [Discourse.ros.org] [Next Generation ROS] Make Ament work with another build system (for cross-compilation)

Loïc Dauphin ros.discourse at gmail.com
Thu Aug 10 15:27:22 UTC 2017

Let's see with an example :  
cmake_minimum_required(VERSION 3.5)

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

find_package(rosidl_typesupport_test REQUIRED)

  FILES main.c


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.

More information about the ros-users mailing list