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

Revision history [back]

click to hide/show revision 1
initial version

If you want to use an external project you should never pull in c++ code. Just make it a library and use pkg-config. Have a look at this page on how to write pc files (very easy).

Afterwards you can just use:

find_package(PkgConfig)
pkg_check_modules(ARBITRARYNAME my_library-1.0)
...
include_directories(
 include
 ${catkin_INCLUDE_DIRS}
 ${ARBITRARYNAME_INCLUDE_DIRS}
)
...
target_link_libraries(my_node
 ${catkin_LIBRARIES}
 ${ARBITRARYNAME_LIBRARIES}
)