ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

target link libraries for C++

asked 2014-06-29 05:53:01 -0500

updated 2014-06-29 05:57:42 -0500

I am using a very simple C++ program and in the CMakelists.txt, my program works for both target_link_libraries(myprogram ${roscpp_LIBRARIES}) and target_link_libraries(myprogram ${catkin_LIBRARIES}). Hence my question, for a C++ program which one is more suitable ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-06-29 08:46:21 -0500

joq gravatar image

That depends on what your program needs.

Since roscpp is a catkin package, the latter does make sense. It will provide libraries from all the catkin packages you depend on.

edit flag offensive delete link more

Comments

@joq What all does the catkin package include ? Is there a list ?

Arkapravo gravatar image Arkapravo  ( 2014-06-29 15:14:11 -0500 )edit

Everything you found using ``find_package(catkin REQUIRED COMPONENTS roscpp ... )``

joq gravatar image joq  ( 2014-06-29 18:59:48 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-06-29 05:53:01 -0500

Seen: 720 times

Last updated: Jun 29 '14