2016-01-24 18:21:21 +00:00
|
|
|
project(sdrdaemon)
|
|
|
|
|
2016-01-24 18:26:42 +00:00
|
|
|
find_package(LZ4)
|
2016-03-27 02:33:12 +00:00
|
|
|
find_package(LibNANOMSG)
|
2016-01-24 18:26:42 +00:00
|
|
|
|
2016-01-24 18:21:21 +00:00
|
|
|
set(sdrdaemon_SOURCES
|
2016-01-24 22:38:55 +00:00
|
|
|
sdrdaemonbuffer.cpp
|
2016-01-24 18:21:21 +00:00
|
|
|
sdrdaemongui.cpp
|
|
|
|
sdrdaemoninput.cpp
|
|
|
|
sdrdaemonplugin.cpp
|
2016-02-17 01:22:05 +00:00
|
|
|
sdrdaemonudphandler.cpp
|
2016-01-24 18:21:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemon_HEADERS
|
2016-01-24 22:38:55 +00:00
|
|
|
sdrdaemonbuffer.h
|
2016-01-24 18:21:21 +00:00
|
|
|
sdrdaemongui.h
|
|
|
|
sdrdaemoninput.h
|
|
|
|
sdrdaemonplugin.h
|
2016-02-17 01:22:05 +00:00
|
|
|
sdrdaemonudphandler.h
|
2016-01-24 18:21:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemon_FORMS
|
|
|
|
sdrdaemongui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(sdrdaemon_HEADERS_MOC ${sdrdaemon_HEADERS})
|
|
|
|
qt5_wrap_ui(sdrdaemon_FORMS_HEADERS ${sdrdaemon_FORMS})
|
|
|
|
|
|
|
|
add_library(inputsdrdaemon SHARED
|
|
|
|
${sdrdaemon_SOURCES}
|
|
|
|
${sdrdaemon_HEADERS_MOC}
|
|
|
|
${sdrdaemon_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
2016-01-24 18:26:42 +00:00
|
|
|
target_include_directories(inputsdrdaemon PUBLIC
|
|
|
|
${LZ4_INCLUDE_DIRS}
|
2016-03-27 02:33:12 +00:00
|
|
|
${LIBNANOMSG_INCLUDE_DIR}
|
2016-01-24 18:26:42 +00:00
|
|
|
)
|
|
|
|
|
2016-01-24 18:21:21 +00:00
|
|
|
target_link_libraries(inputsdrdaemon
|
|
|
|
${QT_LIBRARIES}
|
2016-01-24 18:26:42 +00:00
|
|
|
${LZ4_LIBRARIES}
|
2016-03-27 02:33:12 +00:00
|
|
|
${LIBNANOMSG_LIBRARIES}
|
2016-01-24 18:21:21 +00:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(inputsdrdaemon Core Widgets OpenGL Multimedia)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
|
|
|
install(TARGETS inputsdrdaemon DESTINATION lib/plugins/samplesource)
|