-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
116 lines (112 loc) · 2.36 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
cmake_minimum_required(VERSION 2.8.3)
project(tello_gazebo)
find_package(catkin REQUIRED COMPONENTS
#gazebo_dev
gazebo_ros
geometry_msgs
roscpp
sensor_msgs
std_msgs
tello_msgs
)
find_package(gazebo REQUIRED)
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIR} include ${catkin_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
add_library(${PROJECT_NAME}
src/tello_plugin.cpp
)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
catkin_package(DEPENDS
roscpp
gazebo_ros
)
#
# #=============
# # Setup
# #=============
#
# # Default to C99
# if(NOT CMAKE_C_STANDARD)
# set(CMAKE_C_STANDARD 99)
# endif()
#
# # Default to C++14
# if(NOT CMAKE_CXX_STANDARD)
# set(CMAKE_CXX_STANDARD 14)
# endif()
#
# # Emulate colcon
# if($ENV{CLION_IDE})
# message("Running inside CLion")
# set(tello_msgs_DIR "${PROJECT_SOURCE_DIR}/../../../install/tello_msgs/share/tello_msgs/cmake")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRUN_INSIDE_CLION")
# endif()
#
# # Find packages
# find_package(ament_cmake REQUIRED)
# find_package(gazebo REQUIRED) # Note uppercase variables in /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake
# find_package(gazebo_dev REQUIRED)
# find_package(gazebo_ros REQUIRED)
# find_package(geometry_msgs REQUIRED)
# find_package(rclcpp REQUIRED)
# find_package(sensor_msgs REQUIRED)
# find_package(std_msgs REQUIRED)
# find_package(tello_msgs REQUIRED)
#
# # Local includes
# include_directories(
# include
# ${gazebo_ros_INCLUDE_DIRS}
# ${geometry_msgs_INCLUDE_DIRS}
# ${std_msgs_INCLUDE_DIRS}
# ${tello_msgs_INCLUDE_DIRS}
# )
#
# #=============
# # Tello Gazebo plugin
# #=============
#
# add_library(
# TelloPlugin SHARED
# src/tello_plugin.cpp
# )
#
# ament_target_dependencies(
# TelloPlugin
# gazebo_dev
# gazebo_ros
# geometry_msgs
# rclcpp
# std_msgs
# tello_msgs
# )
#
# #=============
# # Install
# #=============
#
# # Install targets
# install(
# TARGETS TelloPlugin
# ARCHIVE DESTINATION lib
# LIBRARY DESTINATION lib
# RUNTIME DESTINATION bin
# )
#
# ## Install world and launch files
# install(
# DIRECTORY models worlds launch
# DESTINATION share/${PROJECT_NAME}
# )
#
# ## Install Python scripts
# install(
# PROGRAMS src/inject_entity.py
# DESTINATION lib/${PROJECT_NAME}
# )
#
# #=============
# # Run ament macros
# #=============
#
# ament_package()