From 883fc153c05c846a47e4e40b742eec4f5953383d Mon Sep 17 00:00:00 2001 From: Ioan Sucan Date: Thu, 18 Apr 2013 01:46:36 +0300 Subject: [PATCH] fix how we look for kdl --- kdl_parser/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kdl_parser/CMakeLists.txt b/kdl_parser/CMakeLists.txt index b2147cd..5112de9 100644 --- a/kdl_parser/CMakeLists.txt +++ b/kdl_parser/CMakeLists.txt @@ -8,10 +8,15 @@ include_directories(${Boost_INCLUDE_DIR}) find_library(tinyxml_library tinyxml) find_package(catkin REQUIRED - COMPONENTS collada_parser orocos_kdl roscpp rosconsole urdf + COMPONENTS collada_parser roscpp rosconsole urdf ) +find_package(orocos-kdl REQUIRED) -include_directories(include ${catkin_INCLUDE_DIRS}) +include_directories(include ${Orocos-KDL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}) + +link_directories(${catkin_LIBRARY_DIRS}) +link_directories(${Orocos-KDL_LIBRARY_DIRS}) +link_directories(${Boost_LIBRARY_DIRS}) catkin_package( LIBRARIES ${PROJECT_NAME} @@ -21,7 +26,7 @@ catkin_package( add_library(${PROJECT_NAME} src/kdl_parser.cpp) target_link_libraries(${PROJECT_NAME} - ${tinyxml_library} ${catkin_LIBRARIES} + ${tinyxml_library} ${Orocos-KDL_LIBRARIES} ${catkin_LIBRARIES} ) add_executable(check_kdl_parser src/check_kdl_parser.cpp )