CMakeLists.txt 799 Bytes
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

set(EXTRA_SRC)
if(BUILD_TESTING)
	list(APPEND EXTRA_SRC
		MockLink.cc
		MockLinkFileServer.cc
		MockLinkMissionItemHandler.cc
	)
endif()

add_library(comm
	#BluetoothLink.cc
	LinkConfiguration.cc
	LinkInterface.cc
	LinkManager.cc
	LogReplayLink.cc
	MavlinkMessagesTimer.cc
	MAVLinkProtocol.cc
	QGCFlightGearLink.cc
	QGCJSBSimLink.cc
	QGCMAVLink.cc
	QGCSerialPortInfo.cc
	QGCXPlaneLink.cc
	SerialLink.cc
	TCPLink.cc
	UDPLink.cc
Willian Galvani's avatar
Willian Galvani committed
27
	UdpIODevice.cc
28 29 30 31 32 33 34 35 36 37 38

	${EXTRA_SRC}

	# HEADERS
	# shouldn't be listed here, but aren't named properly for AUTOMOC
	QGCFlightGearLink.h
	QGCHilLink.h
	QGCJSBSimLink.h
)

target_link_libraries(comm
39 40
	PRIVATE
		qgc
41 42 43
	PUBLIC
		Qt5::Location
		Qt5::SerialPort
44
		Qt5::Test
45 46 47 48
		Qt5::TextToSpeech
		Qt5::Widgets
)

49
target_include_directories(comm INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
50