-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
39 lines (32 loc) · 971 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
cmake_minimum_required(VERSION 3.0.2)
project(ros_template)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
actionlib_msgs
geometry_msgs
roscpp
rospy
sensor_msgs
std_msgs
message_generation
)
add_message_files(FILES custom_msg.msg)
add_service_files(FILES custom_srv.srv)
add_action_files(FILES custom_action.action)
generate_messages(DEPENDENCIES actionlib_msgs std_msgs)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS actionlib_msgs geometry_msgs roscpp rospy sensor_msgs std_msgs
DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
catkin_install_python(PROGRAMS scripts/PythonTemplate.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
add_executable(roscpp_template src/main_node.cpp src/Template.cpp)
target_link_libraries(roscpp_template ${catkin_LIBRARIES})
add_dependencies(roscpp_template ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})