-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt~
executable file
·75 lines (62 loc) · 1.72 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
cmake_minimum_required(VERSION 2.8.3)
project(fly_shape)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
cmake_modules
control_msgs
qfy_dynamixel
tf
)
find_package(Eigen REQUIRED)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES fly_shape
# CATKIN_DEPENDS roscpp rospy std_msgs
# DEPENDS system_lib
)
include_directories(include
${catkin_INCLUDE_DIRS}
)
## Declare a cpp library
add_library(fly_line
src/fly_line.cpp
)
add_executable(fly_shape src/fly_shape.cpp)
add_dependencies(fly_shape fly_shape_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
target_link_libraries(fly_shape
${catkin_LIBRARIES}
fly_line
)
add_library(qfy_hover
src/qfy_hover.cpp
)
add_executable(qfy_hover_node src/qfy_hover_node.cpp)
add_dependencies(qfy_hover_node fly_shape_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
target_link_libraries(qfy_hover_node
${catkin_LIBRARIES}
qfy_hover
)
add_executable(qfy_test src/qfy_test.cpp)
add_dependencies(qfy_test fly_shape_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
target_link_libraries(qfy_test
${catkin_LIBRARIES}
)
add_executable(qfy_tango src/qfy_tango.cpp)
add_dependencies(qfy_tango ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(qfy_tango
${catkin_LIBRARIES}
)
add_executable(uav_track src/uav_track.cpp)
add_dependencies(uav_track ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(uav_track
${catkin_LIBRARIES}
)
install(PROGRAMS
scripts/srv_test.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)