Skip to content

Commit 1c1672d

Browse files
committed
update for yaml-cpp dependencies
1 parent d310af6 commit 1c1672d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

robotis_controller/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ find_package(catkin REQUIRED COMPONENTS
1919
cmake_modules
2020
)
2121

22+
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CATKIN_DEVEL_PREFIX}/lib/pkgconfig")
23+
find_package(PkgConfig)
24+
pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
25+
2226
################################################################################
2327
# Declare ROS messages, services and actions
2428
################################################################################
@@ -42,11 +46,12 @@ catkin_package(
4246
include_directories(
4347
include
4448
${catkin_INCLUDE_DIRS}
49+
${yaml_cpp_INCLUDE_DIRS}
4550
)
4651

4752
add_library(robotis_controller src/robotis_controller/robotis_controller.cpp)
4853
add_dependencies(robotis_controller ${catkin_EXPORTED_TARGETS})
49-
target_link_libraries(robotis_controller yaml-cpp ${catkin_LIBRARIES})
54+
target_link_libraries(robotis_controller ${yaml_cpp_LIBRARIES} ${catkin_LIBRARIES})
5055

5156
################################################################################
5257
# Install

robotis_controller/package.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<build_depend>robotis_controller_msgs</build_depend>
2222
<build_depend>robotis_framework_common</build_depend>
2323
<build_depend>cmake_modules</build_depend>
24+
<build_depend>yaml-cpp</build_depend>
2425
<run_depend>roscpp</run_depend>
2526
<run_depend>roslib</run_depend>
2627
<run_depend>std_msgs</run_depend>
@@ -30,5 +31,6 @@
3031
<run_depend>robotis_controller_msgs</run_depend>
3132
<run_depend>robotis_framework_common</run_depend>
3233
<run_depend>cmake_modules</run_depend>
34+
<run_depend>yaml-cpp</run_depend>
3335
<export></export>
3436
</package>

0 commit comments

Comments
 (0)