ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This should be enough:
include_directories(
include
${catkin_INCLUDE_DIRS}
)
2 | No.2 Revision |
This should be enough:
include_directories(
include
${catkin_INCLUDE_DIRS}
)
The paths in your CMakeLists.txt
are relative to the file itself. Since CMakeLists.txt
is in the root of your package -- as is your include
directory -- specifying include
is enough.
3 | No.3 Revision |
I think the bigger problem here is that the include path isn't setup correctly:
include_directories(
/src
/launch
/include
...
)
these are all absolute paths, and I doubt the OP has his headers in a dir called include
in the root of his partition.
This should be enough:
include_directories(
include
${catkin_INCLUDE_DIRS}
)
The paths in your CMakeLists.txt
are relative to the file itself. Since CMakeLists.txt
is in the root of your package -- as is your include
directory -- specifying include
is enough.