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

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

add_library(comm
	#BluetoothLink.cc
16
	#BluetoothLink.h
17
	LinkConfiguration.cc
18
	LinkConfiguration.h
19
	LinkInterface.cc
20
	LinkInterface.h
21
	LinkManager.cc
22
	LinkManager.h
23
	LogReplayLink.cc
24
	LogReplayLink.h
25
	MavlinkMessagesTimer.cc
26
	MavlinkMessagesTimer.h
27
	MAVLinkProtocol.cc
28
	MAVLinkProtocol.h
29
	QGCMAVLink.cc
30
	QGCMAVLink.h
31
	QGCSerialPortInfo.cc
32
	QGCSerialPortInfo.h
33
	SerialLink.cc
34
	SerialLink.h
35
	TCPLink.cc
36
	TCPLink.h
Willian Galvani's avatar
Willian Galvani committed
37
	UdpIODevice.cc
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