forked from PedroHRPBS/flight_controller_temp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (62 loc) · 2.01 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
cmake_minimum_required(VERSION 2.8.3)
project(flight_controller)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
common_srv
)
add_message_files(
FILES
PID_param.msg
MRFT_param.msg
SM_param.msg
Waypoint.msg
Info.msg
)
add_service_files(
FILES
Arm.srv
Update_Controller_PID.srv
Update_Controller_MRFT.srv
Update_Controller_SM.srv
Reset_Controller.srv
Update_Pose_Reference.srv
Update_X_Reference.srv
Update_Y_Reference.srv
Update_Z_Reference.srv
Update_Yaw_Reference.srv
SwitchBlock.srv
Restricted_Norm_Settings.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp std_msgs message_runtime common_srv
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/Navio2
${CMAKE_CURRENT_SOURCE_DIR}/include/Navio2/Common
${catkin_INCLUDE_DIRS}
)
FILE(GLOB SOURCE_FILES *.hpp *.cpp *.h
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Navio2_cpp/*.cpp
)
add_executable(${PROJECT_NAME} flight_controller_node/flight_controller_node.cpp ${SOURCE_FILES})
add_executable(providers_node providers_node/providers_node.cpp ${SOURCE_FILES})
add_executable(waypoint_reference_node waypoint_reference_node/waypoint_reference_node.cpp ${SOURCE_FILES})
add_executable(global2inertial_node global2inertial_node/global2inertial_node.cpp ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
target_link_libraries(providers_node ${catkin_LIBRARIES})
target_link_libraries(waypoint_reference_node ${catkin_LIBRARIES})
target_link_libraries(global2inertial_node ${catkin_LIBRARIES})
add_dependencies(flight_controller flight_controller_generate_messages_cpp)
add_dependencies(providers_node flight_controller_generate_messages_cpp)
add_dependencies(waypoint_reference_node flight_controller_generate_messages_cpp)
add_dependencies(global2inertial_node flight_controller_generate_messages_cpp)