-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
69 lines (57 loc) · 2.35 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
cmake_minimum_required(VERSION 2.8.3)
project(avoidance_benchmark)
find_package(catkin REQUIRED COMPONENTS
roscpp
image_transport
sensor_msgs
std_msgs
cv_bridge
gazebo_msgs
geometry_msgs
mav_msgs
trajectory_msgs
nav_msgs
tf
std_srvs
)
find_package( OpenCV REQUIRED )
find_package( gazebo REQUIRED)
set( CMAKE_CXX_STANDARD 11) #needed in the benchmark manager and in the wind plugin
set( CMAKE_EXPORT_COMPILE_COMMANDS ON ) #needed for Vim YouCompleteMe plugin
set( CMAKE_CXX_FLAGS_RELEASE -O3 -DNDEBUG )
catkin_package()
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(benchmark_manager
src/benchmark_manager/test_node.cpp
src/benchmark_manager/test.cpp
src/benchmark_manager/util.cpp
src/benchmark_manager/image_creation.cpp)
add_dependencies(benchmark_manager ${${PROJECT_NAME}_EXPORTED_TARGETS}${catkin_EXPORTED_TARGETS})
target_link_libraries(benchmark_manager ${catkin_LIBRARIES} ${OpenCV_LIBS} )
add_executable(dummy_avoidance_algorithm
src/dummy_avoidance_algorithm/node.cpp
src/dummy_avoidance_algorithm/dummyAvoidance.cpp
src/dummy_avoidance_algorithm/util.cpp)
add_dependencies(dummy_avoidance_algorithm ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(dummy_avoidance_algorithm ${catkin_LIBRARIES} )
add_executable(noisy_velodyne
src/noisy_velodyne/node.cpp
src/noisy_velodyne/noisy_velodyne.cpp)
add_dependencies(noisy_velodyne ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(noisy_velodyne ${catkin_LIBRARIES} ${OpenCV_LIBS} )
add_executable(noisy_realsense
src/noisy_realsense/node.cpp
src/noisy_realsense/noisy_realsense.cpp)
add_dependencies(noisy_realsense ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(noisy_realsense ${catkin_LIBRARIES} ${OpenCV_LIBS} )
# ============================================== #
# ================= WIND PLUGIN ================ #
# ============================================== #
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(include ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
add_library(boarr_gazebo_wind_plugin SHARED gazebo/gazebo_plugins/gazebo_wind_plugin.cc)
target_link_libraries(boarr_gazebo_wind_plugin ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
add_dependencies(boarr_gazebo_wind_plugin ${catkin_EXPORTED_TARGETS})