ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

ROSTutorialsWritingPublisherSubscriber(c++) CMakeLists.txt include_directories

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

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 -0600

joq gravatar image

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 69 times

Last updated: Mar 21 '15