KDL CMake patch to support toolkits within CMake config file
Submitted by snrkiwi on Mon, 2010-03-29 21:20 |
On top of earlier patch, to support KDL components ala
FIND_PACKAGE(Orocos-KDL QUIET COMPONENTS kdltk kdltk-corba)
Note that for the above find statement, additional CMake variables of the form KDLTK_xxx and KDLTK-CORBA_xxx are created. That is, each of the components is its own module (from the pkgconfig lookup). So to link against kdl, kdltk, and kdltk-corba, you need
target_link_libraries( someProgram
${KDL_LIBRARIES}
${KDLTK_LIBRARIES}
${KDLTK-CORBA_LIBRARIES})
Tested on Koala and Snow Leopard.
S
Attachment | Size |
---|---|
0001-cmake-Add-toolkit-component-support-to-CMake-config-.patch | 2.34 KB |
KDL CMake patch to support toolkits within CMake config file
This and the previous patch are applied to kdl trunk and the 1.0
branch, thanks for sending
Ruben
On Mon, Mar 29, 2010 at 10:18 PM, S Roderick <kiwi [dot] net [..] ...> wrote:
> On top of earlier patch, to support KDL components ala
>
> FIND_PACKAGE(Orocos-KDL QUIET COMPONENTS kdltk kdltk-corba)
>
> Note that for the above find statement, additional CMake variables of the form KDLTK_xxx and KDLTK-CORBA_xxx are created. That is, each of the components is its own module (from the pkgconfig lookup). So to link against kdl, kdltk, and kdltk-corba, you need
>
> target_link_libraries( someProgram
> ${KDL_LIBRARIES}
> ${KDLTK_LIBRARIES}
> ${KDLTK-CORBA_LIBRARIES})
>
> Tested on Koala and Snow Leopard.
> S
>
>