File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ find_package(catkin REQUIRED COMPONENTS
19
19
cmake_modules
20
20
)
21
21
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
+
22
26
################################################################################
23
27
# Declare ROS messages, services and actions
24
28
################################################################################
@@ -42,11 +46,12 @@ catkin_package(
42
46
include_directories (
43
47
include
44
48
${catkin_INCLUDE_DIRS}
49
+ ${yaml_cpp_INCLUDE_DIRS}
45
50
)
46
51
47
52
add_library (robotis_controller src/robotis_controller/robotis_controller.cpp)
48
53
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} )
50
55
51
56
################################################################################
52
57
# Install
Original file line number Diff line number Diff line change 21
21
<build_depend >robotis_controller_msgs</build_depend >
22
22
<build_depend >robotis_framework_common</build_depend >
23
23
<build_depend >cmake_modules</build_depend >
24
+ <build_depend >yaml-cpp</build_depend >
24
25
<run_depend >roscpp</run_depend >
25
26
<run_depend >roslib</run_depend >
26
27
<run_depend >std_msgs</run_depend >
30
31
<run_depend >robotis_controller_msgs</run_depend >
31
32
<run_depend >robotis_framework_common</run_depend >
32
33
<run_depend >cmake_modules</run_depend >
34
+ <run_depend >yaml-cpp</run_depend >
33
35
<export ></export >
34
36
</package >
You can’t perform that action at this time.
0 commit comments