CMakeLists.txt 3.29 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 44
		TransectStyleComplexItemTestBase.cc
		TransectStyleComplexItemTestBase.h
45
		VisualMissionItemTest.cc
46
		VisualMissionItemTest.h
47 48 49 50
	)
endif()

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

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

	${EXTRA_SRC}
)

139
add_custom_Target(MisionManagerQml
140 141 142 143
	SOURCES
		QGCMapCircleVisuals.qml  
		QGCMapPolygonVisuals.qml  
		QGCMapPolylineVisuals.qml
144 145
)

146 147
target_link_libraries(MissionManager
	PUBLIC
148
		Qt5::Xml
Daniel Agar's avatar
Daniel Agar committed
149
                qgc
150
	PRIVATE
151
		qgc
152 153
)

154
target_include_directories(MissionManager INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
155