-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
105 lines (92 loc) · 2.14 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
cmake_minimum_required(VERSION 2.8.3)
project(visp_hand2eye_calibration)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
image_proc
message_generation
roscpp
sensor_msgs
std_msgs
visp_bridge
)
# ViSP cannot be found by Catkin.
# see https://github.com/ros/catkin/issues/606
find_package(VISP REQUIRED)
add_definitions(${VISP_DEFINITIONS})
include_directories(
${Boost_INCLUDE_DIRS}
${VISP_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
#link_directories(
# ${Boost_LIBRARY_DIRS}
# ${VISP_LIBRARY_DIRS}
# ${catkin_LIBRARY_DIRS}
# )
# Generate messages and services.
add_message_files(
DIRECTORY
msg
FILES
TransformArray.msg
)
add_service_files(
DIRECTORY
srv
FILES
compute_effector_camera.srv
compute_effector_camera_quick.srv
reset.srv
)
generate_messages(DEPENDENCIES geometry_msgs sensor_msgs std_msgs)
catkin_package(
CATKIN_DEPENDS
message_runtime
roscpp
sensor_msgs
std_msgs
geometry_msgs
)
add_library(visp_hand2eye_calibration_common
src/names.cpp
src/names.h
)
target_link_libraries(visp_hand2eye_calibration_common
${catkin_LIBRARIES}
${roscpp_LIBRARIES}
)
add_executable(visp_hand2eye_calibration_calibrator
src/calibrator.cpp
src/calibrator.h
src/calibrator_main.cpp
)
target_link_libraries(visp_hand2eye_calibration_calibrator
visp_hand2eye_calibration_common
${catkin_LIBRARIES}
${roscpp_LIBRARIES}
)
add_dependencies(visp_hand2eye_calibration_calibrator
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_gencpp)
add_executable(visp_hand2eye_calibration_client
src/client.cpp
src/client.h
src/client_main.cpp
)
target_link_libraries(visp_hand2eye_calibration_client
visp_hand2eye_calibration_common
${catkin_LIBRARIES}
${roscpp_LIBRARIES}
)
add_dependencies(visp_hand2eye_calibration_client
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_gencpp)
install(
TARGETS
visp_hand2eye_calibration_calibrator
visp_hand2eye_calibration_client
visp_hand2eye_calibration_common
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)