2018-02-22 16:52:49 -05:00
|
|
|
project(datv)
|
|
|
|
|
2018-11-24 15:21:04 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
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
|
2018-02-22 16:52:49 -05:00
|
|
|
datvideostream.cpp
|
2019-03-17 16:31:42 -04:00
|
|
|
datvideorender.cpp
|
|
|
|
leansdr/dvb.cpp
|
|
|
|
leansdr/filtergen.cpp
|
|
|
|
leansdr/framework.cpp
|
|
|
|
leansdr/math.cpp
|
|
|
|
leansdr/sdr.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
|
2018-02-22 16:52:49 -05:00
|
|
|
datvideostream.h
|
2019-03-17 16:31:42 -04:00
|
|
|
datvideorender.h
|
|
|
|
leansdr/dvb.h
|
|
|
|
leansdr/filtergen.h
|
|
|
|
leansdr/framework.h
|
|
|
|
leansdr/math.h
|
|
|
|
leansdr/sdr.h
|
2018-02-22 16:52:49 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(datv_FORMS
|
|
|
|
datvdemodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-02-28 02:37:03 -05:00
|
|
|
${AVCODEC_INCLUDE_DIRS}
|
|
|
|
${AVFORMAT_INCLUDE_DIRS}
|
2018-05-28 03:05:52 -04:00
|
|
|
${AVUTIL_INCLUDE_DIRS}
|
2019-03-19 21:15:59 -04:00
|
|
|
${SWSCALE_INCLUDE_DIRS}
|
|
|
|
${SWRESAMPLE_INCLUDE_DIRS}
|
2018-02-22 16:52:49 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt5_wrap_cpp(nfm_HEADERS_MOC ${nfm_HEADERS})
|
|
|
|
qt5_wrap_ui(datv_FORMS_HEADERS ${datv_FORMS})
|
|
|
|
|
|
|
|
add_library(demoddatv SHARED
|
|
|
|
${datv_SOURCES}
|
|
|
|
${datv_HEADERS_MOC}
|
|
|
|
${datv_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demoddatv
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
2018-02-28 02:37:03 -05:00
|
|
|
${AVCODEC_LIBRARIES}
|
|
|
|
${AVFORMAT_LIBRARIES}
|
2018-05-28 03:05:52 -04:00
|
|
|
${AVUTIL_LIBRARIES}
|
2019-03-19 21:15:59 -04:00
|
|
|
${SWSCALE_LIBRARIES}
|
|
|
|
${SWRESAMPLE_LIBRARIES}
|
2018-02-22 16:52:49 -05:00
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
find_package(Qt5MultimediaWidgets 5.0 REQUIRED)
|
|
|
|
target_link_libraries(demoddatv Qt5::Core Qt5::Widgets Qt5::Multimedia Qt5::MultimediaWidgets)
|
2018-02-22 16:52:49 -05:00
|
|
|
|
|
|
|
install(TARGETS demoddatv DESTINATION lib/plugins/channelrx)
|