2017-12-19 19:01:53 -05:00
|
|
|
project(filesource)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(PLUGIN_PREFIX "../../../plugins/samplesource/filesource")
|
|
|
|
|
|
|
|
set(filesource_SOURCES
|
|
|
|
${PLUGIN_PREFIX}/filesourceinput.cpp
|
|
|
|
${PLUGIN_PREFIX}/filesourceplugin.cpp
|
|
|
|
${PLUGIN_PREFIX}/filesourcethread.cpp
|
2017-12-24 12:37:33 -05:00
|
|
|
${PLUGIN_PREFIX}/filesourcesettings.cpp
|
2017-12-19 19:01:53 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(filesource_HEADERS
|
|
|
|
${PLUGIN_PREFIX}/filesourceinput.h
|
|
|
|
${PLUGIN_PREFIX}/filesourceplugin.h
|
|
|
|
${PLUGIN_PREFIX}/filesourcethread.h
|
2017-12-24 12:37:33 -05:00
|
|
|
${PLUGIN_PREFIX}/filesourcesettings.h
|
2017-12-19 19:01:53 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-09 07:48:14 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-12-19 19:01:53 -05:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(inputfilesourcesrv SHARED
|
|
|
|
${filesource_SOURCES}
|
|
|
|
${filesource_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(inputfilesourcesrv
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(inputfilesourcesrv Qt5::Core)
|
2017-12-19 19:01:53 -05:00
|
|
|
|
|
|
|
install(TARGETS inputfilesourcesrv DESTINATION lib/pluginssrv/samplesource)
|