-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
56 lines (45 loc) · 1.16 KB
/
CMakeLists.txt
File metadata and controls
56 lines (45 loc) · 1.16 KB
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
cmake_minimum_required(VERSION 3.0.0)
project(bebop_teleop)
add_definitions(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
std_msgs
sensor_msgs
bebop_msgs
cv_bridge
image_transport
)
include(FindPkgConfig)
pkg_check_modules(SDL2 REQUIRED sdl2)
pkg_check_modules(SDL2_TTF REQUIRED SDL2_ttf)
#generate_messages(
# DEPENDENCIES
# geometry_msgs
# std_msgs
# sensor_msgs
# bebop_msgs
#)
catkin_package(
INCLUDE_DIRS include
LIBRARIES bebop_teleop
CATKIN_DEPENDS geometry_msgs roscpp std_msgs sensor_msgs bebop_msgs cv_bridge image_transport
DEPENDS ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARY}
)
include_directories(include
${SDL2_INCLUDE_DIRS}
${SDL2_TTF_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS})
link_directories(${SDL2_LIBRARY_DIRS}
${SDL2_TTF_LIBRARY_DIRS}
${catkin_LIBRARY_DIRS})
add_executable( bebop_teleop src/Events.cpp src/Input.cpp src/Window.cpp src/ManualControl.cpp src/GUI.cpp src/StateTracker.cpp src/Patroller.cpp src/main.cpp)
add_executable( webcam src/WebcamPublisher.cpp)
target_link_libraries( bebop_teleop
${SDL2_LIBRARIES}
${SDL2_TTF_LIBRARIES}
${catkin_LIBRARIES}
)
target_link_libraries( webcam
${catkin_LIBRARIES}
)