-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
158 lines (135 loc) · 3.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# cmake_minimum_required(VERSION 2.8.3)
# project(mechsort)
# ## Compile as C++11, supported in ROS Kinetic and newer
# #add_compile_options(-std=c++11)
# ## Find catkin macros and libraries
# find_package(catkin REQUIRED COMPONENTS
# roscpp
# std_msgs
# ##sensor_msgs
# pcl_conversions
# pcl_ros
# geometry_msgs
# moveit_core
# moveit_ros_planning
# moveit_ros_planning_interface
# message_generation
# )
# ## System dependencies are found with CMake's conventions
# add_message_files(
# # # DIRECTORY
# # # pose_msg/src/msg
# FILES
# # # list all the .msg files in the pose_msg package
# pose.msg
# )
# # Add service files
# add_service_files(
# FILES
# pose.srv
# )
# ##find_package(PCL 1.7 REQUIRED)
# generate_messages(
# DEPENDENCIES
# # list any other message or service dependencies
# std_msgs
# )
# ## Declare catkin dependencies
# catkin_package(
# CATKIN_DEPENDS roscpp sensor_msgs pcl_conversions pcl_ros geometry_msgs message_runtime
# )
# ##pose_msg
# ## Specify additional locations of header files
# include_directories(
# include
# ${catkin_INCLUDE_DIRS}
# ##${PCL_INCLUDE_DIRS}
# )
# ## Declare a C++ executable
# #add_executable(highest_point_node src/highest_point_node.cpp)
# add_executable(pc_receiver_node src/pc_receiver.cpp)
# add_executable(sia10f_move_node src/sia10f_move_node.cpp)
# add_executable(pose_server_node src/pose_server.cpp)
# add_dependencies(pose_server_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
# ## Specify libraries to link a library or executable target against
# target_link_libraries(pc_receiver_node
# ${catkin_LIBRARIES}
# ${MOVEIT_LIBRARIES}
# ##${PCL_LIBRARIES}
# )
# target_link_libraries(sia10f_move_node
# ${catkin_LIBRARIES}
# ${MOVEIT_LIBRARIES}
# ##${PCL_LIBRARIES}
# )
# target_link_libraries(pose_server_node
# ${catkin_LIBRARIES}
# ${MOVEIT_LIBRARIES}
# ##${PCL_LIBRARIES}
# )
cmake_minimum_required(VERSION 2.8.3)
project(mechsort)
## Compile as C++11, supported in ROS Kinetic and newer
#add_compile_options(-std=c++11)
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
##sensor_msgs
pcl_conversions
pcl_ros
geometry_msgs
moveit_core
moveit_ros_planning
moveit_ros_planning_interface
message_generation
pose_msg
)
## System dependencies are found with CMake's conventions
add_message_files(
FILES
#pose_msg/pose.msg
)
# Add service files
add_service_files(
FILES
pose.srv
)
generate_messages(
DEPENDENCIES
std_msgs
# list any other message or service dependencies
## Add other message dependencies if needed
)
## Declare catkin dependencies
catkin_package(
CATKIN_DEPENDS roscpp sensor_msgs pcl_conversions pcl_ros geometry_msgs message_runtime
)
## Specify additional locations of header files
include_directories(
include
${catkin_INCLUDE_DIRS}
)
## Declare a C++ executable
#add_executable(highest_point_node src/highest_point_node.cpp)
add_executable(pc_receiver_node src/pc_receiver.cpp)
add_executable(sia10f_move_node src/sia10f_move_node.cpp)
# add_executable(pose_server_node src/pose_server.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(pc_receiver_node
${catkin_LIBRARIES}
${MOVEIT_LIBRARIES}
)
target_link_libraries(sia10f_move_node
${catkin_LIBRARIES}
${MOVEIT_LIBRARIES}
)
# target_link_libraries(pose_server_node pose_msg
# ${catkin_LIBRARIES}
# ${MOVEIT_LIBRARIES}
# )
# Add dependencies to the generate_messages target
add_dependencies(pc_receiver_node ${PROJECT_NAME}_generate_messages_cpp)
add_dependencies(sia10f_move_node ${PROJECT_NAME}_generate_messages_cpp)
#add_dependencies(pose_server_node ${PROJECT_NAME}_generate_messages_cpp)
# add_dependencies(pose_server_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) # Add this line for message generation