add_subdirectory(APM) add_subdirectory(Common) add_subdirectory(PX4) add_library(AutoPilotPlugins APM/APMAirframeComponent.cc APM/APMAirframeComponentController.cc APM/APMAutoPilotPlugin.cc APM/APMCameraComponent.cc APM/APMCompassCal.cc APM/APMFlightModesComponent.cc APM/APMFlightModesComponentController.cc APM/APMFollowComponent.cc APM/APMFollowComponentController.cc APM/APMHeliComponent.cc APM/APMLightsComponent.cc APM/APMMotorComponent.cc APM/APMPowerComponent.cc APM/APMRadioComponent.cc APM/APMSafetyComponent.cc APM/APMSensorsComponent.cc APM/APMSensorsComponentController.cc APM/APMSubFrameComponent.cc APM/APMSubMotorComponentController.cc APM/APMTuningComponent.cc Common/ESP8266Component.cc Common/ESP8266ComponentController.cc Common/MotorComponent.cc Common/RadioComponentController.cc Common/SyslinkComponent.cc Common/SyslinkComponentController.cc Generic/GenericAutoPilotPlugin.cc PX4/AirframeComponentAirframes.cc PX4/AirframeComponentAirframes.h PX4/AirframeComponent.cc PX4/AirframeComponentController.cc PX4/AirframeComponentController.h PX4/AirframeComponent.h PX4/CameraComponent.cc PX4/CameraComponent.h PX4/FlightModesComponent.cc PX4/FlightModesComponent.h PX4/PowerComponent.cc PX4/PowerComponentController.cc PX4/PowerComponentController.h PX4/PowerComponent.h PX4/PX4AdvancedFlightModesController.cc PX4/PX4AdvancedFlightModesController.h PX4/PX4AirframeLoader.cc PX4/PX4AirframeLoader.h PX4/PX4AutoPilotPlugin.cc PX4/PX4AutoPilotPlugin.h PX4/PX4RadioComponent.cc PX4/PX4RadioComponent.h PX4/PX4SimpleFlightModesController.cc PX4/PX4SimpleFlightModesController.h PX4/PX4TuningComponent.cc PX4/PX4TuningComponent.h PX4/SafetyComponent.cc PX4/SafetyComponent.h PX4/SensorsComponent.cc PX4/SensorsComponentController.cc PX4/SensorsComponentController.h PX4/SensorsComponent.h AutoPilotPlugin.cc ) target_link_libraries(AutoPilotPlugins PRIVATE qgc ) target_include_directories(AutoPilotPlugins INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} PUBLIC APM Common PX4 )