CMakeLists.txt 3.1 KB
Newer Older
1 2 3 4 5

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
		CameraCalcTest.cc
6
		CameraCalcTest.h
7
		CameraSectionTest.cc
8
		CameraSectionTest.h
9
		CorridorScanComplexItemTest.cc
10
		CorridorScanComplexItemTest.h
11
		FWLandingPatternTest.cc
12
		FWLandingPatternTest.h
13
		MissionCommandTreeTest.cc
14
		MissionCommandTreeTest.h
15
		MissionControllerManagerTest.cc
16
		MissionControllerManagerTest.h
17
		MissionControllerTest.cc
18
		MissionControllerTest.h
19
		MissionItemTest.cc
20
		MissionItemTest.h
21
		MissionManagerTest.cc
22
		MissionManagerTest.h
23
		MissionSettingsTest.cc
24
		MissionSettingsTest.h
25
		PlanMasterControllerTest.cc
26
		PlanMasterControllerTest.h
27
		QGCMapPolygonTest.cc
28
		QGCMapPolygonTest.h
29
		QGCMapPolylineTest.cc
30
		QGCMapPolylineTest.h
31
		SectionTest.cc
32
		SectionTest.h
33
		SimpleMissionItemTest.cc
34
		SimpleMissionItemTest.h
35
		SpeedSectionTest.cc
36
		SpeedSectionTest.h
37
		StructureScanComplexItemTest.cc
38
		StructureScanComplexItemTest.h
39
		SurveyComplexItemTest.cc
40
		SurveyComplexItemTest.h
41
		TransectStyleComplexItemTest.cc
42
		TransectStyleComplexItemTest.h
43
		VisualMissionItemTest.cc
44
		VisualMissionItemTest.h
45 46 47 48
	)
endif()

add_library(MissionManager
49 50
	BlankPlanCreator.cc
	BlankPlanCreator.h
51
	CameraCalc.cc
52
	CameraCalc.h
53
	CameraSection.cc
54
	CameraSection.h
55
	CameraSpec.cc
56
	CameraSpec.h
57
	ComplexMissionItem.cc
58
	ComplexMissionItem.h
59
	CorridorScanComplexItem.cc
60
	CorridorScanComplexItem.h
61
	CorridorScanPlanCreator.cc
62
	CorridorScanPlanCreator.h
63
	FixedWingLandingComplexItem.cc
64
	FixedWingLandingComplexItem.h
65
	GeoFenceController.cc
66
	GeoFenceController.h
67
	GeoFenceManager.cc
68
	GeoFenceManager.h
69
	KML.cc
70
	KML.h
71
	MissionCommandList.cc
72
	MissionCommandList.h
73
	MissionCommandTree.cc
74
	MissionCommandTree.h
75
	MissionCommandUIInfo.cc
76
	MissionCommandUIInfo.h
77
	MissionController.cc
78
	MissionController.h
79
	MissionItem.cc
80
	MissionItem.h
81
	MissionManager.cc
82
	MissionManager.h
83
	MissionSettingsItem.cc
84
	MissionSettingsItem.h
85
	PlanCreator.cc
86
	PlanCreator.h
87
	PlanElementController.cc
88
	PlanElementController.h
89
	PlanManager.cc
90
	PlanManager.h
91
	PlanMasterController.cc
92
	PlanMasterController.h
93
	QGCFenceCircle.cc
94
	QGCFenceCircle.h
95
	QGCFencePolygon.cc
96
	QGCFencePolygon.h
97
	QGCMapCircle.cc
98
	QGCMapCircle.h
99
	QGCMapPolygon.cc
100
	QGCMapPolygon.h
101
	QGCMapPolyline.cc
102
	QGCMapPolyline.h
103 104
	RallyPoint.cc
	RallyPointController.cc
105 106
	RallyPointController.h
	RallyPoint.h
107
	RallyPointManager.cc
108 109
	RallyPointManager.h
	Section.h
110
	SimpleMissionItem.cc
111
	SimpleMissionItem.h
112
	SpeedSection.cc
113
	SpeedSection.h
114
	StructureScanComplexItem.cc
115
	StructureScanComplexItem.h
116
	StructureScanPlanCreator.cc
117
	StructureScanPlanCreator.h
118
	SurveyComplexItem.cc
119
	SurveyComplexItem.h
120
	SurveyPlanCreator.cc
121
	SurveyPlanCreator.h
122 123
	TakeoffMissionItem.cc
	TakeoffMissionItem.h
124
	TransectStyleComplexItem.cc
125
	TransectStyleComplexItem.h
126
	VisualMissionItem.cc
127
	VisualMissionItem.h
128 129 130 131 132 133

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

	${EXTRA_SRC}
)

134 135 136 137 138 139 140
add_custom_Target(MisionManagerQml
SOURCES
	QGCMapCircleVisuals.qml  
	QGCMapPolygonVisuals.qml  
	QGCMapPolylineVisuals.qml
)

141 142
target_link_libraries(MissionManager
	PUBLIC
143
		Qt5::Xml
Daniel Agar's avatar
Daniel Agar committed
144
                qgc
145
	PRIVATE
146
		qgc
147 148
)

149
target_include_directories(MissionManager INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})