-
Notifications
You must be signed in to change notification settings - Fork 50
/
CMakeLists.txt
81 lines (72 loc) · 1.4 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
cmake_minimum_required(VERSION 2.8.3)
project(fetch_open_auto_dock)
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()
find_package(catkin REQUIRED
COMPONENTS
actionlib
angles
fetch_auto_dock_msgs
fetch_driver_msgs
geometry_msgs
nav_msgs
roslib
roscpp
rospy
std_msgs
tf
)
find_package(Eigen3 REQUIRED)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS
actionlib
fetch_auto_dock_msgs
fetch_driver_msgs
geometry_msgs
nav_msgs
roslib
roscpp
rospy
sensor_msgs
std_msgs
tf
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
add_executable(auto_dock
src/auto_dock.cpp
src/controller.cpp
src/icp_2d.cpp
src/laser_processor.cpp
src/perception.cpp
src/linear_pose_filter_2d.cpp
)
target_link_libraries(auto_dock
${catkin_LIBRARIES}
)
add_dependencies(auto_dock
${catkin_EXPORTED_TARGETS}
)
if (CATKIN_ENABLE_TESTING)
add_subdirectory(test)
endif()
install(TARGETS auto_dock
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(
DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(
PROGRAMS
scripts/dock_on_button.py
scripts/dock_robot.py
scripts/undock_on_button.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)