2018-02-22 21:52:49 +00:00
|
|
|
project(datv)
|
|
|
|
|
|
|
|
set(datv_SOURCES
|
|
|
|
datvdemod.cpp
|
|
|
|
datvdemodgui.cpp
|
|
|
|
datvdemodplugin.cpp
|
|
|
|
datvideostream.cpp
|
|
|
|
datvideorender.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(datv_HEADERS
|
|
|
|
datvdemod.h
|
|
|
|
datvdemodgui.h
|
|
|
|
datvdemodplugin.h
|
|
|
|
datvideostream.h
|
|
|
|
datvideorender.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(datv_FORMS
|
|
|
|
datvdemodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-02-28 07:37:03 +00:00
|
|
|
${AVCODEC_INCLUDE_DIRS}
|
|
|
|
${AVFORMAT_INCLUDE_DIRS}
|
2018-05-28 07:05:52 +00:00
|
|
|
${AVUTIL_INCLUDE_DIRS}
|
2018-02-28 07:37:03 +00:00
|
|
|
${SWSCALE_INCLUDE_DIRS}
|
2018-02-22 21:52:49 +00: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 07:37:03 +00:00
|
|
|
${AVCODEC_LIBRARIES}
|
|
|
|
${AVFORMAT_LIBRARIES}
|
2018-05-28 07:05:52 +00:00
|
|
|
${AVUTIL_LIBRARIES}
|
2018-02-28 07:37:03 +00:00
|
|
|
${SWSCALE_LIBRARIES}
|
2018-02-22 21:52:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(demoddatv Core Widgets Multimedia MultimediaWidgets)
|
|
|
|
|
|
|
|
install(TARGETS demoddatv DESTINATION lib/plugins/channelrx)
|