CMakeLists.txt 1.53 KB
Newer Older
1 2 3 4 5 6 7 8 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
		CameraCalcTest.cc
		CameraSectionTest.cc
		CorridorScanComplexItemTest.cc
		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
	FixedWingLandingComplexItem.cc
	GeoFenceController.cc
	GeoFenceManager.cc
	KML.cc
	MissionCommandList.cc
	MissionCommandTree.cc
	MissionCommandUIInfo.cc
	MissionController.cc
	MissionItem.cc
	MissionManager.cc
	MissionSettingsItem.cc
	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
	SurveyComplexItem.cc
	TransectStyleComplexItem.cc
	VisualMissionItem.cc

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

	${EXTRA_SRC}
)

target_link_libraries(MissionManager
	PUBLIC
69
		Qt5::Xml
Daniel Agar's avatar
Daniel Agar committed
70
                qgc
71
	PRIVATE
72
		qgc
73 74
)

75
target_include_directories(MissionManager INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})