What is the purpose of catkin_package provided there is target_link_libraries and target_include_directories?

asked 2021-12-19 13:50:00 -0500

rooss gravatar image

updated 2022-01-22 16:16:13 -0500

Evgeny gravatar image

In https://answers.ros.org/question/5849..., it says that catkin_package will guide catkin to add directories into the current package's _INCLUDE_DIRS and _LIBRARIES variables so that dependent packages don't have to find current packages' dependency.

This is some feature that can be achieved through the PUBLIC tag of target_link_libraries and target_include_directories functions.

What's the purpose or benefits of using catkin_package? Does it provide some convenient stuff like catkin_INCLUDE_DIRS variable?

edit retag flag offensive close merge delete