1
1
################################################################################
2
- # CMake
2
+ # Set minimum required version of cmake, project name and compile options
3
3
################################################################################
4
4
cmake_minimum_required (VERSION 2.8.3)
5
5
project (robotis_controller)
6
6
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)
8
9
9
10
################################################################################
10
- # Packages
11
+ # Find catkin packages and libraries for catkin and system dependencies
11
12
################################################################################
12
13
find_package (catkin REQUIRED COMPONENTS
13
14
roscpp
@@ -21,8 +22,15 @@ find_package(catkin REQUIRED COMPONENTS
21
22
cmake_modules
22
23
)
23
24
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
+ ################################################################################
26
34
27
35
################################################################################
28
36
# Declare ROS messages, services and actions
@@ -33,12 +41,13 @@ pkg_check_modules(yaml_cpp yaml-cpp REQUIRED)
33
41
################################################################################
34
42
35
43
################################################################################
36
- # Catkin specific configuration
44
+ # Declare catkin specific configuration to be passed to dependent projects
37
45
################################################################################
38
46
catkin_package(
39
47
INCLUDE_DIRS include
40
48
LIBRARIES robotis_controller
41
49
CATKIN_DEPENDS roscpp roslib std_msgs sensor_msgs robotis_controller_msgs dynamixel_sdk robotis_device robotis_framework_common cmake_modules
50
+ DEPENDS YAML_CPP
42
51
)
43
52
44
53
################################################################################
0 commit comments