1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00
sdrangel/plugins/feature/aprs/CMakeLists.txt
Jon Beniston 3ccfa6db29 APRS updates
Don't run windeployqt as redundant.
Reduce chart margin size to give more area to graphs.
Use latest packetmod URI.
2021-02-26 20:32:33 +00:00

63 lines
1.1 KiB
CMake

project(aprs)
set(aprs_SOURCES
aprs.cpp
aprssettings.cpp
aprsplugin.cpp
aprsworker.cpp
aprswebapiadapter.cpp
)
set(aprs_HEADERS
aprs.h
aprssettings.h
aprsplugin.h
aprsreport.h
aprsworker.h
aprswebapiadapter.h
)
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
if(NOT SERVER_MODE)
set(aprs_SOURCES
${aprs_SOURCES}
aprsgui.cpp
aprsgui.ui
aprssettingsdialog.cpp
aprssettingsdialog.ui
aprs.qrc
)
set(aprs_HEADERS
${aprs_HEADERS}
aprsgui.h
aprssettingsdialog.h
)
set(TARGET_NAME aprs)
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME aprssrv)
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
add_library(${TARGET_NAME} SHARED
${aprs_SOURCES}
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})