-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (39 loc) · 908 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(package_name)
# add required packages
find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
gazebo_ros
control_msgs
geometry_msgs
message_generation
)
# message files if you want to create custom messages
add_message_files(
FILES
PackageMsg.msg # update with your message file name in msg folder
)
# service files if you want to create custom services
add_service_files(
FILES
PackageSrv.srv # update with your service file name in srv folder
)
# setup the package - it will run setup.py
catkin_python_setup()
# generate added messages and services
generate_messages(
DEPENDENCIES
std_msgs
)
# add catkin dependencies
catkin_package(
CATKIN_DEPENDS message_runtime
rospy
std_msgs
)
# install python scripts
catkin_install_python(PROGRAMS
scripts/node # add nodes here
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)