-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
104 lines (74 loc) · 2.66 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
cmake_minimum_required(VERSION 3.0)
include(ExternalProject)
project(opensot_visual_servoing CXX)
add_compile_options(-std=c++2a)
option(COMPILE_TESTS "Compile tests" FALSE)
find_package(cartesian_interface)
find_package(catkin REQUIRED COMPONENTS cartesian_interface
roscpp
urdf
rospy
std_msgs
message_generation)
find_package(OpenSoT REQUIRED)
find_package(VISP REQUIRED)
find_package(matlogger2 REQUIRED)
catkin_python_setup()
add_message_files(
FILES
VisualFeature.msg
VisualFeatures.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
INCLUDE_DIRS
LIBRARIES
OpenSoTVisualServoingTask
CATKIN_DEPENDS message_runtime
)
include_directories(include
${OpenSoT_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${VISP_INCLUDE_DIRS})
# cartesio_acceleration_support library
add_library(OpenSoTVisualServoingTask SHARED
src/tasks/velocity/VisualServoing.cpp
src/utils/Utils.cpp)
target_link_libraries(OpenSoTVisualServoingTask
${OpenSoT_LIBRARIES}
${catkin_LIBRARIES}
${VISP_LIBRARIES})
install(TARGETS OpenSoTVisualServoingTask
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
add_library(CartesioVisualServoing SHARED
src/cartesio_support/tasks/velocity/VisualServoing.cpp)
target_link_libraries(CartesioVisualServoing
OpenSoTVisualServoingTask
${cartesian_interface_LIBRARIES}
${catkin_LIBRARIES})
install(TARGETS CartesioVisualServoing
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")
catkin_install_python(PROGRAMS python/image_processing_node
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
if(COMPILE_TESTS)
enable_testing()
add_subdirectory(tests)
endif()