2021-03-18 13:17:58 -04:00
|
|
|
project(moddatv)
|
|
|
|
|
|
|
|
set(moddatv_SOURCES
|
|
|
|
datvmod.cpp
|
|
|
|
datvmodbaseband.cpp
|
|
|
|
datvmodreport.cpp
|
|
|
|
datvmodsource.cpp
|
|
|
|
datvmodplugin.cpp
|
|
|
|
datvmodsettings.cpp
|
|
|
|
datvmodwebapiadapter.cpp
|
|
|
|
dvb-s/dvb-s.cpp
|
2021-03-31 11:41:42 -04:00
|
|
|
dvb-s2/DVB2.cpp
|
|
|
|
dvb-s2/DVBS2.cpp
|
|
|
|
dvb-s2/dvb2_bbheader.cpp
|
|
|
|
dvb-s2/dvb2_bch.cpp
|
|
|
|
dvb-s2/dvb2_ldpc_encode.cpp
|
|
|
|
dvb-s2/dvb2_ldpc_tables.cpp
|
|
|
|
dvb-s2/dvb2_scrambler.cpp
|
|
|
|
dvb-s2/dvbs2_interleave.cpp
|
|
|
|
dvb-s2/dvbs2_modulator.cpp
|
|
|
|
dvb-s2/dvbs2_physical.cpp
|
|
|
|
dvb-s2/dvbs2_scrambler.cpp
|
|
|
|
dvb-s2/dvbs2_tables.cpp
|
2021-03-18 13:17:58 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(moddatv_HEADERS
|
|
|
|
datvmod.h
|
|
|
|
datvmodbaseband.h
|
|
|
|
datvmodreport.h
|
|
|
|
datvmodsource.h
|
|
|
|
datvmodplugin.h
|
|
|
|
datvmodsettings.h
|
|
|
|
datvmodwebapiadapter.h
|
|
|
|
dvb-s/dvb-s.h
|
2021-03-31 11:41:42 -04:00
|
|
|
dvb-s/dvb-s.h
|
|
|
|
dvb-s2/DVB2.h
|
|
|
|
dvb-s2/DVBS2.h
|
2021-03-18 13:17:58 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${AVCODEC_INCLUDE_DIRS}
|
|
|
|
${AVFORMAT_INCLUDE_DIRS}
|
|
|
|
${AVUTIL_INCLUDE_DIRS}
|
|
|
|
${SWSCALE_INCLUDE_DIRS}
|
|
|
|
${SWRESAMPLE_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(moddatv_SOURCES
|
|
|
|
${moddatv_SOURCES}
|
|
|
|
datvmodgui.cpp
|
|
|
|
datvmodgui.ui
|
|
|
|
)
|
|
|
|
set(moddatv_HEADERS
|
|
|
|
${moddatv_HEADERS}
|
|
|
|
datvmodgui.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(TARGET_NAME moddatv)
|
2022-11-17 09:34:54 -05:00
|
|
|
set(TARGET_LIB "Qt::Widgets")
|
2021-03-18 13:17:58 -04:00
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
else()
|
|
|
|
set(TARGET_NAME moddatvsrv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
|
|
|
endif()
|
|
|
|
|
2024-09-11 15:16:40 -04:00
|
|
|
if(NOT Qt6_FOUND)
|
|
|
|
add_library(${TARGET_NAME} ${moddatv_SOURCES})
|
|
|
|
else()
|
|
|
|
qt_add_plugin(${TARGET_NAME} CLASS_NAME DATVModPlugin ${moddatv_SOURCES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
|
|
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
|
|
|
|
endif()
|
2021-03-18 13:17:58 -04:00
|
|
|
|
2024-09-11 15:16:40 -04:00
|
|
|
target_link_libraries(${TARGET_NAME} PRIVATE
|
2021-03-18 13:17:58 -04:00
|
|
|
Boost::disable_autolinking
|
2022-11-17 09:34:54 -05:00
|
|
|
Qt::Core
|
2021-03-18 13:17:58 -04:00
|
|
|
${TARGET_LIB}
|
|
|
|
sdrbase
|
|
|
|
${TARGET_LIB_GUI}
|
|
|
|
swagger
|
|
|
|
${AVCODEC_LIBRARIES}
|
|
|
|
${AVFORMAT_LIBRARIES}
|
|
|
|
${AVUTIL_LIBRARIES}
|
|
|
|
${SWSCALE_LIBRARIES}
|
|
|
|
${SWRESAMPLE_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2023-09-13 16:58:51 -04:00
|
|
|
if(DEFINED FFMPEG_DEPENDS)
|
|
|
|
add_dependencies(${TARGET_NAME} ${FFMPEG_DEPENDS})
|
2022-05-16 08:48:29 -04:00
|
|
|
endif()
|
|
|
|
|
2021-03-18 13:17:58 -04:00
|
|
|
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()
|