ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
libsegwayrmp
is not a catkin
package. Therefore it does not require a pkg-config
. There are find_package
files provided by libsegwayrmp
for depending projects to find and use it:
find_package(libsegwayrmp REQUIRED)
...
include_directories(${libsegwayrmp_INCLUDE_DIRS})
...
target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})
You can see the (simplistic) implementation file here:
https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake
That being said it would be nice to have pkg-config
files for libsegwayrmp
.
2 | No.2 Revision |
libsegwayrmp
is not a catkin
package. Therefore it does not require a pkg-config
. There are find_package
files provided by libsegwayrmp
for depending projects to find and use it:
find_package(libsegwayrmp REQUIRED)
...
include_directories(${libsegwayrmp_INCLUDE_DIRS})
...
target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})
You can see the (simplistic) implementation file here:
https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake
That being said it would be nice to have pkg-config
files for libsegwayrmp
.
Update:
Yes, a rosbuild package can depend on a plain CMake project. You just have to treat libsegwayrmp
like you would any other third party library (Boost, Eigen, VTK). You should not list libsegwayrmp
as a ros package dependency, but rather as a rosdep dependency.
3 | No.3 Revision |
libsegwayrmp
is not a catkin
package. Therefore it does not require a pkg-config
. There are find_package
files provided by libsegwayrmp
for depending projects to find and use it:
find_package(libsegwayrmp REQUIRED)
...
include_directories(${libsegwayrmp_INCLUDE_DIRS})
...
target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})
You can see the (simplistic) implementation file here:
https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake
That being said it would be nice to have pkg-config
files for libsegwayrmp
.
Update:
Yes, a rosbuild package can depend on a plain CMake project. You just have to treat libsegwayrmp
like you would any other third party library (Boost, Eigen, VTK). You should not list libsegwayrmp
as a ros package dependency, but rather as a rosdep dependency.
Update2:
However, to remain backwards compatible (preventing a need to change segway_rmpx
) would be to add pkg-config files to libsegwayrmp
. I forgot until now that REP-0136 has a note about this:
http://ros.org/reps/rep-0136.html#backwards-compatibility