-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (59 loc) · 1.48 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
cmake_minimum_required(VERSION 2.8.6)
project(ropod_task_executor)
set(CMAKE_CXX_STANDARD 11)
include(/opt/ropod/ropod_common/ropodcpp/ftsm/CMakeLists.txt)
find_package(PkgConfig)
include(FindPkgConfig)
pkg_check_modules(LIBMONGOCXX REQUIRED libmongocxx)
pkg_check_modules(LIBBSONCXX REQUIRED libbsoncxx)
find_package(catkin REQUIRED
COMPONENTS
message_generation
roscpp
ropod_ros_msgs
actionlib
elevator_navigation
route_navigation
task_planner_ros_wrapper
)
include_directories(
include
${LIBMONGOCXX_INCLUDE_DIRS}
${LIBBSONCXX_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
link_directories(
${LIBMONGOCXX_LIBRARY_DIRS}
${LIBBSONCXX_LIBRARY_DIRS}
)
catkin_package(
CATKIN_DEPENDS
roscpp
ropod_ros_msgs
elevator_navigation
route_navigation
)
add_executable(ropod_task_executor
src/task_executor.cpp
src/task_planning_helper.cpp
src/goto_recovery.cpp
src/dock_recovery.cpp
src/elevator_recovery.cpp
src/action_recovery.cpp
/opt/ropod/ropod_common/ropodcpp/ftsm/src/ftsm_base.cpp
/opt/ropod/ftsm/cppftsm/src/ftsm.cpp
)
add_dependencies(ropod_task_executor ropod_ros_msgs_generate_messages_cpp)
target_link_libraries(ropod_task_executor
${LIBMONGOCXX_LIBRARIES}
${LIBBSONCXX_LIBRARIES}
${catkin_LIBRARIES}
${FTSM_LIBRARIES}
)
add_executable(execution_mockup
mockup/execution_mockup.cpp
)
add_dependencies(execution_mockup ropod_ros_msgs_gencpp)
target_link_libraries(execution_mockup
${catkin_LIBRARIES}
)