2022-05-01 04:32:08 -04:00
|
|
|
project(vormc)
|
2020-11-24 07:31:16 -05:00
|
|
|
|
2022-05-01 04:32:08 -04:00
|
|
|
set(vormc_SOURCES
|
|
|
|
vordemodmc.cpp
|
|
|
|
vordemodmcsettings.cpp
|
|
|
|
vordemodmcbaseband.cpp
|
|
|
|
vordemodmcsink.cpp
|
|
|
|
vordemodmcplugin.cpp
|
|
|
|
vordemodmcwebapiadapter.cpp
|
|
|
|
vordemodmcreport.cpp
|
2020-11-24 07:31:16 -05:00
|
|
|
)
|
|
|
|
|
2022-05-01 04:32:08 -04:00
|
|
|
set(vormc_HEADERS
|
|
|
|
vordemodmc.h
|
|
|
|
vordemodmcsettings.h
|
|
|
|
vordemodmcbaseband.h
|
|
|
|
vordemodmcsink.h
|
|
|
|
vordemodmcplugin.h
|
|
|
|
vordemodmcwebapiadapter.h
|
|
|
|
vordemodmcreport.h
|
2020-11-24 07:31:16 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT SERVER_MODE)
|
2022-05-01 04:32:08 -04:00
|
|
|
set(vormc_SOURCES
|
|
|
|
${vormc_SOURCES}
|
|
|
|
vordemodmcgui.cpp
|
|
|
|
vordemodmcgui.ui
|
2020-11-24 07:31:16 -05:00
|
|
|
map.qrc
|
|
|
|
icons.qrc
|
|
|
|
)
|
2022-05-01 04:32:08 -04:00
|
|
|
set(vormc_HEADERS
|
|
|
|
${vormc_HEADERS}
|
|
|
|
vordemodmcgui.h
|
2020-11-24 07:31:16 -05:00
|
|
|
navaid.h
|
|
|
|
../demodadsb/csv.h
|
|
|
|
)
|
|
|
|
|
2022-05-01 04:32:08 -04:00
|
|
|
set(TARGET_NAME demodvormc)
|
2020-11-24 07:31:16 -05:00
|
|
|
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
2022-05-01 04:32:08 -04:00
|
|
|
set(TARGET_NAME demodvormcsrv)
|
2020-11-24 07:31:16 -05:00
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
2022-05-01 04:32:08 -04:00
|
|
|
${vormc_SOURCES}
|
2020-11-24 07:31:16 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
|
|
|
sdrbase
|
|
|
|
${TARGET_LIB_GUI}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
2022-02-06 07:56:58 -05:00
|
|
|
|
|
|
|
# Install debug symbols
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
|
|
|
|
endif()
|