CMakeLists.txt 1.79 KB
Newer Older
1 2 3 4 5 6 7

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
		CameraCalcTest.cc
		CameraSectionTest.cc
		CorridorScanComplexItemTest.cc
8
		FWLandingPatternTest.cc
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
		MissionCommandTreeTest.cc
		MissionControllerManagerTest.cc
		MissionControllerTest.cc
		MissionItemTest.cc
		MissionManagerTest.cc
		MissionSettingsTest.cc
		PlanMasterControllerTest.cc
		QGCMapPolygonTest.cc
		QGCMapPolylineTest.cc
		SectionTest.cc
		SimpleMissionItemTest.cc
		SpeedSectionTest.cc
		StructureScanComplexItemTest.cc
		SurveyComplexItemTest.cc
		TransectStyleComplexItemTest.cc
		VisualMissionItemTest.cc
	)
endif()

add_library(MissionManager
	CameraCalc.cc
	CameraSection.cc
	CameraSpec.cc
	ComplexMissionItem.cc
	CorridorScanComplexItem.cc
34 35
	CorridorScanPlanCreator.cc
	CustomPlanCreator.cc
36 37 38 39 40 41 42 43 44 45 46
	FixedWingLandingComplexItem.cc
	GeoFenceController.cc
	GeoFenceManager.cc
	KML.cc
	MissionCommandList.cc
	MissionCommandTree.cc
	MissionCommandUIInfo.cc
	MissionController.cc
	MissionItem.cc
	MissionManager.cc
	MissionSettingsItem.cc
47
	PlanCreator.cc
48 49 50 51 52 53 54 55 56 57 58 59 60 61
	PlanElementController.cc
	PlanManager.cc
	PlanMasterController.cc
	QGCFenceCircle.cc
	QGCFencePolygon.cc
	QGCMapCircle.cc
	QGCMapPolygon.cc
	QGCMapPolyline.cc
	RallyPoint.cc
	RallyPointController.cc
	RallyPointManager.cc
	SimpleMissionItem.cc
	SpeedSection.cc
	StructureScanComplexItem.cc
62
	StructureScanPlanCreator.cc
63
	SurveyComplexItem.cc
64
	SurveyPlanCreator.cc
65 66 67 68 69 70 71 72
	TransectStyleComplexItem.cc
	VisualMissionItem.cc

	Section.h # shouldn't be listed here, but isn't named properly for AUTOMOC

	${EXTRA_SRC}
)

73 74 75 76 77 78 79
add_custom_Target(MisionManagerQml
SOURCES
	QGCMapCircleVisuals.qml  
	QGCMapPolygonVisuals.qml  
	QGCMapPolylineVisuals.qml
)

80 81
target_link_libraries(MissionManager
	PUBLIC
82
		Qt5::Xml
Daniel Agar's avatar
Daniel Agar committed
83
                qgc
84
	PRIVATE
85
		qgc
86 87
)

88
target_include_directories(MissionManager INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})