Skip to content

Commit 5aa587d

Browse files
committed
tested for system dependencies
1 parent d9793f1 commit 5aa587d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

robotis_controller/CMakeLists.txt

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
################################################################################
2-
# CMake
2+
# Set minimum required version of cmake, project name and compile options
33
################################################################################
44
cmake_minimum_required(VERSION 2.8.3)
55
project(robotis_controller)
66

7-
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
7+
## Compile as C++11, supported in ROS Kinetic and newer
8+
add_compile_options(-std=c++11)
89

910
################################################################################
10-
# Packages
11+
# Find catkin packages and libraries for catkin and system dependencies
1112
################################################################################
1213
find_package(catkin REQUIRED COMPONENTS
1314
roscpp
@@ -21,8 +22,15 @@ find_package(catkin REQUIRED COMPONENTS
2122
cmake_modules
2223
)
2324

24-
find_package(PkgConfig REQUIRED)
25-
pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
25+
find_package(yaml-cpp REQUIRED)
26+
27+
# find_package(PkgConfig REQUIRED)
28+
# pkg_check_modules(YAML_CPP REQUIRED yaml-cpp)
29+
# pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
30+
31+
################################################################################
32+
# Setup for python modules and scripts
33+
################################################################################
2634

2735
################################################################################
2836
# Declare ROS messages, services and actions
@@ -33,12 +41,13 @@ pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
3341
################################################################################
3442

3543
################################################################################
36-
# Catkin specific configuration
44+
# Declare catkin specific configuration to be passed to dependent projects
3745
################################################################################
3846
catkin_package(
3947
INCLUDE_DIRS include
4048
LIBRARIES robotis_controller
4149
CATKIN_DEPENDS roscpp roslib std_msgs sensor_msgs robotis_controller_msgs dynamixel_sdk robotis_device robotis_framework_common cmake_modules
50+
DEPENDS YAML_CPP
4251
)
4352

4453
################################################################################

0 commit comments

Comments
 (0)