jhu-lcsr-forks / rtt_ros_integration

Orocos-ROS integration libraries and tools
1 stars 2 forks source link

Removed all dependencies to rtt and ocl in catkin_package() #37

Closed meyerj closed 10 years ago

meyerj commented 10 years ago

The only option to make that work is to create a new package that calls find_package(OROCOS-RTT ... and optionally also includes the UseOrocosRTT.cmake script in one of its CFG_EXTRAS files and appends the RTT libraries to its packagename_LIBRARIES variable. This could also be integrated in rtt_ros directly.

This would allow catkin users to write very simple cmake files like this:

find_package(catkin REQUIRED COMPONENTS rtt_ros)
include_directories(${catkin_INCLUDE_DIRECTORIES})
orocos_component(foo ...)
target_link_libraries(foo ${catkin_LIBRARIES})