CMakeLists.txt 880 Bytes
Newer Older
1 2 3 4 5

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
		MockLink.cc
Daniel Agar's avatar
Daniel Agar committed
6 7 8
		MockLink.h
		MockLinkFTP.cc
		MockLinkFTP.h
9
		MockLinkMissionItemHandler.cc
Daniel Agar's avatar
Daniel Agar committed
10
		MockLinkMissionItemHandler.h
11 12 13 14 15
	)
endif()

add_library(comm
	#BluetoothLink.cc
Daniel Agar's avatar
Daniel Agar committed
16
	#BluetoothLink.h
17
	LinkConfiguration.cc
Daniel Agar's avatar
Daniel Agar committed
18
	LinkConfiguration.h
19
	LinkInterface.cc
Daniel Agar's avatar
Daniel Agar committed
20
	LinkInterface.h
21
	LinkManager.cc
Daniel Agar's avatar
Daniel Agar committed
22
	LinkManager.h
23
	LogReplayLink.cc
Daniel Agar's avatar
Daniel Agar committed
24
	LogReplayLink.h
25
	MavlinkMessagesTimer.cc
Daniel Agar's avatar
Daniel Agar committed
26
	MavlinkMessagesTimer.h
27
	MAVLinkProtocol.cc
Daniel Agar's avatar
Daniel Agar committed
28
	MAVLinkProtocol.h
29
	QGCMAVLink.cc
Daniel Agar's avatar
Daniel Agar committed
30
	QGCMAVLink.h
31
	QGCSerialPortInfo.cc
Daniel Agar's avatar
Daniel Agar committed
32
	QGCSerialPortInfo.h
33
	SerialLink.cc
Daniel Agar's avatar
Daniel Agar committed
34
	SerialLink.h
35
	TCPLink.cc
Daniel Agar's avatar
Daniel Agar committed
36
	TCPLink.h
Willian Galvani's avatar
Willian Galvani committed
37
	UdpIODevice.cc
Daniel Agar's avatar
Daniel Agar committed
38 39 40
	UdpIODevice.h
	UDPLink.cc
	UDPLink.h
41 42 43 44 45

	${EXTRA_SRC}
)

target_link_libraries(comm
46 47
	PRIVATE
		qgc
48 49 50
	PUBLIC
		Qt5::Location
		Qt5::SerialPort
51
		Qt5::Test
52 53 54 55
		Qt5::TextToSpeech
		Qt5::Widgets
)

56
target_include_directories(comm INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
57