-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·82 lines (67 loc) · 1.51 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
cmake_minimum_required(VERSION 2.8.12)
project(fetch_study)
find_package(catkin REQUIRED
roscpp
costmap_2d
dynamic_reconfigure
tf2_geometry_msgs
nav_core
pluginlib
roscpp
lattice_planner
pcl_conversions
tf2
tf2_ros
actionlib
message_generation
)
generate_dynamic_reconfigure_options(
cfg/PathFollower.cfg
)
## Add actions
add_action_files(DIRECTORY action FILES StatusAction.action)
## Generate messages
generate_messages(DEPENDENCIES std_msgs actionlib_msgs)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS dynamic_reconfigure
CATKIN_DEPENDS lattice_planner
CATKIN_DEPENDS base_local_planner
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(
${PROJECT_NAME}
src/timed_path_follower.cpp
)
add_dependencies(
${PROJECT_NAME}
${PROJECT_NAME}_gencfg
)
include_directories(fetch_study/cmake/cfgbuild.cmake)
install(
DIRECTORY config
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(
DIRECTORY aux_libraries
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(
DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
target_link_libraries(fetch_study ${catkin_LIBRARIES})
install(
PROGRAMS scripts/follow_waypoints.py
PROGRAMS scripts/demo_path.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS roslaunch)
roslaunch_add_file_check(launch/fetch_nav.launch)
roslaunch_add_file_check(launch/study_nav.launch)
endif()