-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
executable file
·62 lines (48 loc) · 1.71 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.3)
project(vfly)
add_definitions(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
geometry_msgs
mav_msgs
message_generation
adrc_control
)
find_package(Eigen3 REQUIRED)
add_message_files(
FILES
vfly_pose.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
INCLUDE_DIRS include ${Eigen3_INCLUDE_DIRS}
# LIBRARIES pid
CATKIN_DEPENDS roscpp sensor_msgs message_runtime geometry_msgs mav_msgs
DEPENDS Eigen3
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Eigen3_INCLUDE_DIRS}
)
find_package(roslaunch)
foreach(dir config launch meshes urdf)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)
add_executable(omni_pid_controller_node src/omni_pid_controller_node.cpp)
target_link_libraries(omni_pid_controller_node pid ${catkin_LIBRARIES})
add_dependencies(omni_pid_controller_node ${vfly}_generate_messages_cpp)
add_executable(omni_adrc_controller_node src/omni_adrc_controller_node.cpp)
target_link_libraries(omni_adrc_controller_node adrc ${catkin_LIBRARIES})
add_dependencies(omni_adrc_controller_node ${vfly}_generate_messages_cpp)
add_executable(rotation_on_fixed_spot_example src/rotation_on_fixed_spot_example.cpp)
target_link_libraries(rotation_on_fixed_spot_example ${catkin_LIBRARIES})
add_dependencies(rotation_on_fixed_spot_example ${vfly}_generate_messages_cpp)
add_executable(move_with_zero_attitude_example src/move_with_zero_attitude_example.cpp)
target_link_libraries(move_with_zero_attitude_example ${catkin_LIBRARIES})
add_dependencies(move_with_zero_attitude_example ${vfly}_generate_messages_cpp)