Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Wrap external library as catkin package

Hi, I have a precompiled library that I want to use in multiple catkin packages. Hence, I want to wrap this external library with a catkin package which then can be used in other packages with the XML command <build_depend>wrapper_library</build_depend> and the cmake command find_package(wrapper_library). Can you tell me which commands must be included in the cmakelists file of the wrapper_library such that it easily provides the wrapped library to other packages? Do these other catkin packages need more commands like the target_link_libraries(mypackage wrapper_library)? I don't really know how to start because this use case is not documented in the Ros tutorials, I think... And I am no cmake expert :) Thanks in advance! inspire

Wrap external library as catkin package

Hi, Hi,

I have a precompiled library that I want to use in multiple catkin packages. Hence, I want to wrap this external library with a catkin package which then can be used in other packages with the XML command <build_depend>wrapper_library</build_depend> and the cmake command find_package(wrapper_library). Can you tell me which commands must be included in the cmakelists file of the wrapper_library such that it easily provides the wrapped library to other packages? Do these other catkin packages need more commands like the target_link_libraries(mypackage wrapper_library)? I don't really know how to start because this use case is not documented in the Ros tutorials, I think... And I am no cmake expert :) :)

Thanks in advance! advance!

inspire