CMakeLists.txt 1.57 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
	PX4/AirframeComponent.cc
	PX4/AirframeComponentAirframes.cc
	PX4/AirframeComponentController.cc
	PX4/CameraComponent.cc
	PX4/FlightModesComponent.cc
	PX4/PowerComponent.cc
	PX4/PowerComponentController.cc
	PX4/PX4AdvancedFlightModesController.cc
	PX4/PX4AirframeLoader.cc
	PX4/PX4AutoPilotPlugin.cc
	PX4/PX4RadioComponent.cc
	PX4/PX4SimpleFlightModesController.cc
	PX4/PX4TuningComponent.cc
	PX4/SafetyComponent.cc
	PX4/SensorsComponent.cc
	PX4/SensorsComponentController.cc

	AutoPilotPlugin.cc
)

target_link_libraries(AutoPilotPlugins
58
	PRIVATE
59 60 61 62
		qgc
)

target_include_directories(AutoPilotPlugins
63
	INTERFACE
64
		${CMAKE_CURRENT_SOURCE_DIR}
65
	PUBLIC
66 67 68 69
		APM
		Common
		PX4
	)