2016-10-19 16:42:57 +00:00
|
|
|
project(filesink)
|
|
|
|
|
2017-12-14 20:03:11 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-10-19 16:42:57 +00:00
|
|
|
set(filesink_SOURCES
|
|
|
|
filesinkgui.cpp
|
|
|
|
filesinkoutput.cpp
|
|
|
|
filesinkplugin.cpp
|
2016-10-20 23:21:17 +00:00
|
|
|
filesinksettings.cpp
|
2016-10-19 16:42:57 +00:00
|
|
|
filesinkthread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(filesink_HEADERS
|
|
|
|
filesinkgui.h
|
|
|
|
filesinkoutput.h
|
|
|
|
filesinkplugin.h
|
2016-10-20 23:21:17 +00:00
|
|
|
filesinksettings.h
|
2016-10-19 16:42:57 +00:00
|
|
|
filesinkthread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(filesink_FORMS
|
|
|
|
filesinkgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-14 20:03:11 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-10-19 16:42:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(filesink_FORMS_HEADERS ${filesink_FORMS})
|
|
|
|
|
|
|
|
add_library(outputfilesink SHARED
|
|
|
|
${filesink_SOURCES}
|
|
|
|
${filesink_HEADERS_MOC}
|
|
|
|
${filesink_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(outputfilesink
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2017-12-14 20:03:11 +00:00
|
|
|
swagger
|
2016-10-19 16:42:57 +00:00
|
|
|
)
|
|
|
|
|
2016-10-27 06:38:50 +00:00
|
|
|
qt5_use_modules(outputfilesink Core Widgets)
|
2016-10-19 16:42:57 +00:00
|
|
|
|
|
|
|
install(TARGETS outputfilesink DESTINATION lib/plugins/samplesink)
|