CMakeLists.txt 1.16 KB
Newer Older
1 2 3 4

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
Daniel Agar's avatar
Daniel Agar committed
5 6 7 8 9 10 11 12 13 14
		FTPManagerTest.cc
		FTPManagerTest.h
		InitialConnectTest.cc
		InitialConnectTest.h
		RequestMessageTest.cc
		RequestMessageTest.h
		SendMavCommandWithHandlerTest.cc
		SendMavCommandWithHandlerTest.h
		SendMavCommandWithSignallingTest.cc
		SendMavCommandWithSignallingTest.h
15 16 17 18
	)
endif()

add_library(Vehicle
Daniel Agar's avatar
Daniel Agar committed
19 20 21 22 23 24 25 26 27 28
	CompInfo.cc
	CompInfo.h
	CompInfoParam.cc
	CompInfoParam.h
	CompInfoVersion.cc
	CompInfoVersion.h
	ComponentInformationManager.cc
	ComponentInformationManager.h
	FTPManager.cc
	FTPManager.h
29
	GPSRTKFactGroup.cc
Daniel Agar's avatar
Daniel Agar committed
30
	GPSRTKFactGroup.h
Daniel Agar's avatar
Daniel Agar committed
31 32
	InitialConnectStateMachine.cc
	InitialConnectStateMachine.h
33
	MAVLinkLogManager.cc
Daniel Agar's avatar
Daniel Agar committed
34
	MAVLinkLogManager.h
35
	MultiVehicleManager.cc
Daniel Agar's avatar
Daniel Agar committed
36
	MultiVehicleManager.h
Daniel Agar's avatar
Daniel Agar committed
37 38
	StateMachine.cc
	StateMachine.h
Daniel Agar's avatar
Daniel Agar committed
39 40
	SysStatusSensorInfo.cc
	SysStatusSensorInfo.h
41 42 43 44
	TerrainFactGroup.cc
	TerrainFactGroup.h
	TerrainProtocolHandler.cc
	TerrainProtocolHandler.h
Daniel Agar's avatar
Daniel Agar committed
45 46
	TrajectoryPoints.cc
	TrajectoryPoints.h
47
	Vehicle.cc
Daniel Agar's avatar
Daniel Agar committed
48
	Vehicle.h
49
	VehicleObjectAvoidance.cc
Daniel Agar's avatar
Daniel Agar committed
50 51
	VehicleObjectAvoidance.h

52 53 54 55
	${EXTRA_SRC}
)

target_link_libraries(Vehicle
Tomaz Canabrava's avatar
Tomaz Canabrava committed
56 57
	PRIVATE
		ui
58 59 60 61
	PUBLIC
		qgc
)

62
target_include_directories(Vehicle INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})