1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 17:46:03 -05:00
sdrangel/plugins/channelrx/demoddatv/CMakeLists.txt

115 lines
2.3 KiB
CMake
Raw Normal View History

2018-02-22 16:52:49 -05:00
project(datv)
2018-11-24 15:21:04 -05:00
2018-02-22 16:52:49 -05:00
set(datv_SOURCES
datvdemod.cpp
datvdemodgui.cpp
2019-03-17 18:49:28 -04:00
datvdemodplugin.cpp
datvdemodsettings.cpp
datvdemodwebapiadapter.cpp
datvideostream.cpp
datvudpstream.cpp
datvideorender.cpp
2019-12-03 12:49:52 -05:00
datvdemodreport.cpp
datvdemodsink.cpp
datvdemodbaseband.cpp
datvdvbs2ldpcdialog.cpp
leansdr/dvb.cpp
leansdr/filtergen.cpp
leansdr/framework.cpp
leansdr/math.cpp
leansdr/sdr.cpp
datvdemodgui.ui
datvdvbs2ldpcdialog.ui
2018-02-22 16:52:49 -05:00
)
2021-03-07 01:41:19 -05:00
set(ldpc_SOURCES
ldpctool/tables_handler.cpp
)
2018-02-22 16:52:49 -05:00
set(datv_HEADERS
datvdemod.h
datvdemodgui.h
datvdemodplugin.h
2019-03-17 18:49:28 -04:00
datvdemodsettings.h
datvdemodwebapiadapter.h
datvideostream.h
datvudpstream.h
datvideorender.h
datvconstellation.h
datvdvbs2constellation.h
2019-12-03 12:49:52 -05:00
datvdemodreport.h
datvdemodsink.h
datvdemodbaseband.h
datvdvbs2ldpcdialog.h
leansdr/dvb.h
leansdr/dvbs2.h
leansdr/filtergen.h
leansdr/framework.h
leansdr/math.h
leansdr/sdr.h
2021-03-07 01:41:19 -05:00
)
set(ldpc_HEADERS
2021-03-02 00:02:38 -05:00
ldpctool/ldpc.h
ldpctool/dvb_s2_tables.h
ldpctool/dvb_s2x_tables.h
ldpctool/dvb_t2_tables.h
2018-02-22 16:52:49 -05:00
)
include_directories(
${AVCODEC_INCLUDE_DIRS}
${AVFORMAT_INCLUDE_DIRS}
${AVUTIL_INCLUDE_DIRS}
${SWSCALE_INCLUDE_DIRS}
${SWRESAMPLE_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
2018-02-22 16:52:49 -05:00
)
set(TARGET_NAME demoddatv)
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
2021-03-07 01:41:19 -05:00
if (LINUX)
add_library(${TARGET_NAME} SHARED
2021-03-07 01:41:19 -05:00
${datv_SOURCES}
${ldpc_SOURCES}
)
else()
add_library(${TARGET_NAME} SHARED
2021-03-07 01:41:19 -05:00
${datv_SOURCES}
)
endif()
2018-02-22 16:52:49 -05:00
target_link_libraries(${TARGET_NAME}
Qt5::Core
Qt5::Widgets
Qt5::Multimedia
Qt5::MultimediaWidgets
sdrbase
sdrgui
${AVCODEC_LIBRARIES}
${AVFORMAT_LIBRARIES}
${AVUTIL_LIBRARIES}
${SWSCALE_LIBRARIES}
${SWRESAMPLE_LIBRARIES}
2018-02-22 16:52:49 -05:00
)
2021-03-07 01:41:19 -05:00
if (LINUX)
add_executable(ldpctool
ldpctool/ldpc_tool.cpp
ldpctool/tables_handler.cpp
)
install(TARGETS ldpctool DESTINATION ${INSTALL_BIN_DIR})
endif()
if(FFMPEG_EXTERNAL)
add_dependencies(${TARGET_NAME} ffmpeg)
endif()
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
# Install debug symbols
if (WIN32)
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
endif()