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
Daniel Agar's avatar
Daniel Agar committed
38 39
	PX4/AirframeComponentAirframes.h
	PX4/AirframeComponent.cc
40
	PX4/AirframeComponentController.cc
Daniel Agar's avatar
Daniel Agar committed
41 42
	PX4/AirframeComponentController.h
	PX4/AirframeComponent.h
43
	PX4/CameraComponent.cc
Daniel Agar's avatar
Daniel Agar committed
44
	PX4/CameraComponent.h
45
	PX4/FlightModesComponent.cc
Daniel Agar's avatar
Daniel Agar committed
46
	PX4/FlightModesComponent.h
47 48
	PX4/PowerComponent.cc
	PX4/PowerComponentController.cc
Daniel Agar's avatar
Daniel Agar committed
49 50
	PX4/PowerComponentController.h
	PX4/PowerComponent.h
51
	PX4/PX4AdvancedFlightModesController.cc
Daniel Agar's avatar
Daniel Agar committed
52
	PX4/PX4AdvancedFlightModesController.h
53
	PX4/PX4AirframeLoader.cc
Daniel Agar's avatar
Daniel Agar committed
54
	PX4/PX4AirframeLoader.h
55
	PX4/PX4AutoPilotPlugin.cc
Daniel Agar's avatar
Daniel Agar committed
56
	PX4/PX4AutoPilotPlugin.h
57
	PX4/PX4RadioComponent.cc
Daniel Agar's avatar
Daniel Agar committed
58
	PX4/PX4RadioComponent.h
59
	PX4/PX4SimpleFlightModesController.cc
Daniel Agar's avatar
Daniel Agar committed
60
	PX4/PX4SimpleFlightModesController.h
61
	PX4/PX4TuningComponent.cc
Daniel Agar's avatar
Daniel Agar committed
62
	PX4/PX4TuningComponent.h
63
	PX4/SafetyComponent.cc
Daniel Agar's avatar
Daniel Agar committed
64
	PX4/SafetyComponent.h
65 66
	PX4/SensorsComponent.cc
	PX4/SensorsComponentController.cc
Daniel Agar's avatar
Daniel Agar committed
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
	)