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
|
|
|
|
)
|
|
|
|
|
2024-09-03 11:52:00 -04:00
|
|
|
set(TARGET_NAME ${PLUGINS_PREFIX}demodvormc)
|
2022-11-17 09:34:54 -05:00
|
|
|
set(TARGET_LIB "Qt::Widgets" Qt::Quick Qt::QuickWidgets Qt::Positioning)
|
2020-11-24 07:31:16 -05:00
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
2024-09-03 11:52:00 -04:00
|
|
|
set(TARGET_NAME ${PLUGINSSRV_PREFIX}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}
|
2022-11-17 09:34:54 -05:00
|
|
|
Qt::Core
|
2020-11-24 07:31:16 -05:00
|
|
|
${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()
|