CMakeLists.txt 2.02 KB
Newer Older
1

2 3 4 5
add_subdirectory(APM)
add_subdirectory(Common)
add_subdirectory(PX4)

6 7 8 9 10 11 12 13
add_library(AutoPilotPlugins
	APM/APMAirframeComponent.cc
	APM/APMAirframeComponentController.cc
	APM/APMAutoPilotPlugin.cc
	APM/APMCameraComponent.cc
	APM/APMCompassCal.cc
	APM/APMFlightModesComponent.cc
	APM/APMFlightModesComponentController.cc
14 15
	APM/APMFollowComponent.cc
	APM/APMFollowComponentController.cc
16
	APM/APMHeliComponent.cc
17
	APM/APMLightsComponent.cc
18
	APM/APMMotorComponent.cc
19 20 21 22 23 24
	APM/APMPowerComponent.cc
	APM/APMRadioComponent.cc
	APM/APMSafetyComponent.cc
	APM/APMSensorsComponent.cc
	APM/APMSensorsComponentController.cc
	APM/APMSubFrameComponent.cc
25
	APM/APMSubMotorComponentController.cc
26 27 28 29 30 31 32 33 34
	APM/APMTuningComponent.cc

	Common/ESP8266Component.cc
	Common/ESP8266ComponentController.cc
	Common/MotorComponent.cc
	Common/RadioComponentController.cc
	Common/SyslinkComponent.cc
	Common/SyslinkComponentController.cc

35 36
	Generic/GenericAutoPilotPlugin.cc

37
	PX4/AirframeComponentAirframes.cc
38 39
	PX4/AirframeComponentAirframes.h
	PX4/AirframeComponent.cc
40
	PX4/AirframeComponentController.cc
41 42
	PX4/AirframeComponentController.h
	PX4/AirframeComponent.h
43
	PX4/CameraComponent.cc
44
	PX4/CameraComponent.h
45
	PX4/FlightModesComponent.cc
46
	PX4/FlightModesComponent.h
47 48
	PX4/PowerComponent.cc
	PX4/PowerComponentController.cc
49 50
	PX4/PowerComponentController.h
	PX4/PowerComponent.h
51
	PX4/PX4AdvancedFlightModesController.cc
52
	PX4/PX4AdvancedFlightModesController.h
53
	PX4/PX4AirframeLoader.cc
54
	PX4/PX4AirframeLoader.h
55
	PX4/PX4AutoPilotPlugin.cc
56
	PX4/PX4AutoPilotPlugin.h
57
	PX4/PX4RadioComponent.cc
58
	PX4/PX4RadioComponent.h
59
	PX4/PX4SimpleFlightModesController.cc
60
	PX4/PX4SimpleFlightModesController.h
61
	PX4/PX4TuningComponent.cc
62
	PX4/PX4TuningComponent.h
63
	PX4/SafetyComponent.cc
64
	PX4/SafetyComponent.h
65 66
	PX4/SensorsComponent.cc
	PX4/SensorsComponentController.cc
67 68
	PX4/SensorsComponentController.h
	PX4/SensorsComponent.h
69 70 71 72 73

	AutoPilotPlugin.cc
)

target_link_libraries(AutoPilotPlugins
74
	PRIVATE
75 76 77 78
		qgc
)

target_include_directories(AutoPilotPlugins
79
	INTERFACE
80
		${CMAKE_CURRENT_SOURCE_DIR}
81
	PUBLIC
82 83 84 85
		APM
		Common
		PX4
	)