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

ROSTutorialsWritingPublisherSubscriber(c++) CMakeLists.txt include_directories

asked 2015-03-21 12:36:20 -0500

marilia15 gravatar image

I have done the tutorial successfully, catkin_make and execution work.

The tutorial says:

include_directories(include ${catkin_INCLUDE_DIRS})

But I did, and it still works:

include_directories( ${catkin_INCLUDE_DIRS})

So , the word include is optional? why? Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-21 13:02:45 -0500

joq gravatar image

updated 2015-03-21 13:05:32 -0500

Adding include is only necessary if your package contains an include/ subdirectory with headers needed for compiling some of your C++ programs.

If there are no such references, the include is unnecessary, but harmless.

For more details, see: http://docs.ros.org/indigo/api/catkin...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-21 12:36:20 -0500

Seen: 88 times

Last updated: Mar 21 '15