forked from RobotnikAutomation/vojext_uc1_scale_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
74 lines (61 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 2.8.3)
project(scale_driver)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
std_srvs
rcomponent
robotnik_msgs
message_generation
)
## Generate messages in the 'msg' folder
#add_message_files(DIRECTORY msg
# FILES
#)
## Generate services in the 'srv' folder
add_service_files(
DIRECTORY srv
FILES
getWeight.srv
)
## Generate added messages and services with any dependencies listed here
catkin_python_setup()
generate_messages(
DEPENDENCIES
actionlib_msgs
std_msgs # Or other packages containing msgs
geometry_msgs
)
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS
rospy
std_msgs
std_srvs
rcomponent
message_runtime
DEPENDS
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
)
#############
## Install ##
#############
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
catkin_install_python(PROGRAMS
src/scale_driver/scale_tcp_ip.py
src/scale_driver/scale_tcp_ip_node.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Modify this if launch or config folders are deleted
install(
DIRECTORY launch config
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)