-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (58 loc) · 1.33 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
cmake_minimum_required(VERSION 2.8.3)
project(ifco_pose_estimator)
message(STATUS "using ros $ENV{ROS_DISTRO}")
if(($ENV{ROS_DISTRO} STREQUAL "melodic"))
message(STATUS "adding -std=c++11")
add_compile_options(-std=c++11)
endif()
if(($ENV{ROS_DISTRO} STREQUAL "lunar"))
message(STATUS "adding -std=c++11")
add_compile_options(-std=c++11)
endif()
if(($ENV{ROS_DISTRO} STREQUAL "kinetic"))
message(STATUS "adding -std=c++11")
add_compile_options(-std=c++11)
endif()
find_package(catkin REQUIRED COMPONENTS
message_generation
roscpp
sensor_msgs
roscpp
std_msgs
cv_bridge
pcl_ros
tf
moveit_core
moveit_ros_planning_interface
shape_msgs
moveit_msgs
tf_conversions
)
add_service_files(FILES
ifco_pose.srv
)
generate_messages(DEPENDENCIES
std_msgs
tf
)
catkin_package(
CATKIN_DEPENDS
message_runtime
)
include_directories(
include ${catkin_INCLUDE_DIRS}
)
add_executable(ifco_pose_server
src/ifco_pose_server.cpp
)
add_dependencies(ifco_pose_server ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(ifco_pose_server
${catkin_LIBRARIES}
)
add_executable(ifco_pose_client
src/ifco_pose_client.cpp
)
add_dependencies(ifco_pose_client ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(ifco_pose_client
${catkin_LIBRARIES}
)