mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
1a9b6d1763
Add GS232 Rotator Controller feature plugin. Add altitude and station name to My Positon. Use QtDeploy to ensure all required Qt libraries are included (Should fix OpenGL issues)
71 lines
1.4 KiB
CMake
71 lines
1.4 KiB
CMake
project(adsb)
|
|
|
|
set(adsb_SOURCES
|
|
adsbdemod.cpp
|
|
adsbdemodsettings.cpp
|
|
adsbdemodwebapiadapter.cpp
|
|
adsbplugin.cpp
|
|
adsbdemodsink.cpp
|
|
adsbdemodbaseband.cpp
|
|
adsbdemodreport.cpp
|
|
adsbdemodworker.cpp
|
|
)
|
|
|
|
set(adsb_HEADERS
|
|
adsbdemod.h
|
|
adsbdemodsettings.h
|
|
adsbdemodwebapiadapter.h
|
|
adsbplugin.h
|
|
adsbdemodsink.h
|
|
adsbdemodbaseband.h
|
|
adsbdemodreport.h
|
|
adsbdemodworker.h
|
|
adsb.h
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
)
|
|
|
|
if(NOT SERVER_MODE)
|
|
set(adsb_SOURCES
|
|
${adsb_SOURCES}
|
|
adsbdemodgui.cpp
|
|
adsbdemodgui.ui
|
|
)
|
|
set(adsb_HEADERS
|
|
${adsb_HEADERS}
|
|
adsbdemodgui.h
|
|
)
|
|
|
|
set(TARGET_NAME demodadsb)
|
|
set(TARGET_LIB Qt5::Widgets Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
else()
|
|
set(TARGET_NAME demodadsbsrv)
|
|
set(TARGET_LIB "")
|
|
set(TARGET_LIB_GUI "")
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
endif()
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
|
${adsb_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
Qt5::Core
|
|
${TARGET_LIB}
|
|
sdrbase
|
|
${TARGET_LIB_GUI}
|
|
swagger
|
|
)
|
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
|
|
|
if(WIN32)
|
|
# Run deployqt for QtQuick etc
|
|
include(DeployQt)
|
|
windeployqt(${TARGET_NAME} ${SDRANGEL_BINARY_BIN_DIR} ${PROJECT_SOURCE_DIR}/../../../sdrgui/resources)
|
|
endif()
|