-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
executable file
·116 lines (99 loc) · 2.34 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
cmake_minimum_required(VERSION 2.8.3)
project(idmp_ros)
add_compile_options(-std=c++14)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -ggdb -fopenmp -fopenacc")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fopenmp")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
tf
tf2
sensor_msgs
std_srvs
visualization_msgs
image_transport
image_geometry
message_filters
depth_image_proc
roslib
pcl_ros
message_generation
interactive_markers
# ros_numpy
cv_bridge
)
find_package(Boost REQUIRED COMPONENTS thread system program_options)
find_package(Eigen3 REQUIRED)
find_package(OpenCV 4.2 EXACT REQUIRED)
find_package(PCL REQUIRED)
add_service_files(
FILES
GetDistanceGradient.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS
roscpp rospy tf tf2 image_transport
sensor_msgs std_srvs visualization_msgs
image_geometry message_filters depth_image_proc roslib
# DEPENDS
# BOOST
# EIGEN3
# OpenCV
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_executable(idmp
src/IDMP_main.cpp
src/IDMP/gp.cpp
src/IDMP/octree.cpp
src/IDMP/IDMP.cpp
)
add_executable(publishGT tools/eval/publishGT.cpp)
target_link_libraries(
idmp
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${YAML_CPP_LIBRARIES}
${OpenCV_LIBRARIES}
${PCL_LIBRARIES}
)
target_link_libraries(
publishGT
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${YAML_CPP_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_dependencies(
idmp
idmp_ros_generate_messages_cpp
${catkin_EXPORTED_TARGETS}
)
add_dependencies(
publishGT
${catkin_EXPORTED_TARGETS}
)
catkin_install_python(PROGRAMS tools/queryTool.py
tools/evalTool.py
tools/speedMove.py
tools/cowAndLadyInfoPub.py
tools/eval/dumpField.py
tools/eval/runTests.py
tools/eval/evalTest.py
tools/calibPose.py
tools/robotProximityViz.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)