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_framework_common)
6
6
7
7
################################################################################
8
- # Packages
8
+ # Find catkin packages and libraries for catkin and system dependencies
9
9
################################################################################
10
10
find_package (catkin REQUIRED COMPONENTS
11
11
roscpp
12
12
robotis_device
13
13
)
14
14
15
+ ################################################################################
16
+ # Setup for python modules and scripts
17
+ ################################################################################
18
+
15
19
################################################################################
16
20
# Declare ROS messages, services and actions
17
21
################################################################################
@@ -21,11 +25,11 @@ find_package(catkin REQUIRED COMPONENTS
21
25
################################################################################
22
26
23
27
################################################################################
24
- # Catkin specific configuration
28
+ # Declare catkin specific configuration to be passed to dependent projects
25
29
################################################################################
26
30
catkin_package(
27
31
INCLUDE_DIRS include
28
- LIBRARIES robotis_framework_common
32
+ LIBRARIES ${PROJECT_NAME}
29
33
CATKIN_DEPENDS roscpp robotis_device
30
34
)
31
35
@@ -42,7 +46,6 @@ add_library(${PROJECT_NAME}
42
46
include /${PROJECT_NAME} /sensor_module.h
43
47
include /${PROJECT_NAME} /singleton.h
44
48
)
45
-
46
49
set_target_properties (${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
47
50
48
51
################################################################################
0 commit comments