-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCMakeLists.txt
62 lines (49 loc) · 1.46 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
cmake_minimum_required(VERSION 2.8)
project(rvo_ros)
set(CMAKE_CXX_STANDARD 11)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
geometry_msgs
std_msgs
message_generation
)
find_package(gazebo REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
link_directories(${catkin_LIBRARY_DIRS})
add_service_files(
DIRECTORY srv
FILES SetGoals.srv
)
# add_message_files(
# FILES
# rvo_vel.msg
# )
generate_messages(
DEPENDENCIES
geometry_msgs
std_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES robohan
# CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy tf
CATKIN_DEPENDS roscpp message_runtime geometry_msgs std_msgs
)
# file(GLOB RVO_LIB_DIRS "rvo_lib/nav_rvo.cpp")
add_subdirectory(simulation/plugins)
add_library(rvolib SHARED rvo_lib/nav_rvo.cpp rvo_lib/RVOSimulator.cpp rvo_lib/Agent.cpp rvo_lib/KdTree.cpp rvo_lib/Obstacle.cpp)
add_executable(rvo_node src/rvo_node.cpp)
target_link_libraries(rvo_node ${catkin_LIBRARIES} rvolib)
add_dependencies(rvo_node ${${PROJECT_NAME}_EXPORTED_TARGETS})
add_executable(set_goals_client src/set_goals_client.cpp)
target_link_libraries(set_goals_client ${catkin_LIBRARIES})
add_dependencies(set_goals_client ${${PROJECT_NAME}_EXPORTED_TARGETS})
# add_dependencies(set_goals_client )
add_executable(formation src/formation.cpp)
target_link_libraries(formation ${catkin_LIBRARIES})
add_dependencies(formation ${${PROJECT_NAME}_EXPORTED_TARGETS})
#target_link_libraries(rvo_test RVO)