Warning, /education/marble/src/plugins/render/aprs/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 PROJECT(AprsPlugin)
0002
0003 find_package(Qt5 ${REQUIRED_QT_VERSION} COMPONENTS SerialPort QUIET)
0004 marble_set_package_properties( Qt5SerialPort PROPERTIES DESCRIPTION "Provides access to hardware and virtual serial ports." )
0005 marble_set_package_properties( Qt5SerialPort PROPERTIES TYPE OPTIONAL PURPOSE "Reading from serial port in APRS plugin" )
0006
0007 INCLUDE_DIRECTORIES(
0008 ${CMAKE_CURRENT_SOURCE_DIR}
0009 ${CMAKE_CURRENT_BINARY_DIR}
0010 )
0011
0012 if (Qt5SerialPort_FOUND)
0013 include_directories (${Qt5SerialPort_INCLUDE_DIR})
0014 set (serial_src AprsTTY.cpp)
0015 list (APPEND AprsPlugin_LIBS ${Qt5SerialPort_LIBRARIES})
0016 set (HAVE_QTSERIALPORT TRUE)
0017 endif ()
0018
0019 set( aprs_SRCS AprsPlugin.cpp
0020 AprsObject.cpp
0021 AprsGatherer.cpp
0022 GeoAprsCoordinates.cpp
0023 ${CMAKE_CURRENT_BINARY_DIR}/AprsGatherer_mic_e.cpp
0024
0025 AprsSource.cpp
0026 AprsTCPIP.cpp
0027 AprsFile.cpp
0028
0029 ${serial_src} )
0030
0031 set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/AprsGatherer_mic_e.cpp PROPERTY SKIP_AUTOMOC ON)
0032
0033 set( aprs_UI AprsConfigWidget.ui )
0034 qt_wrap_ui( aprs_SRCS ${aprs_UI} )
0035
0036 add_custom_command(
0037 OUTPUT AprsGatherer_mic_e.cpp
0038 COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/AprsGatherGen.pl > AprsGatherer_mic_e.cpp
0039 MAIN_DEPENDENCY AprsGatherGen.pl
0040 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
0041 )
0042
0043 marble_add_plugin( AprsPlugin ${aprs_SRCS} )
0044
0045 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/aprsconfig.h.in
0046 ${CMAKE_CURRENT_BINARY_DIR}/aprsconfig.h)