2018-09-11 11:05:16 -04:00
|
|
|
project(daemonsource)
|
2018-09-01 16:41:02 -04:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
2018-09-11 10:50:55 -04:00
|
|
|
set(PLUGIN_PREFIX "../../../plugins/channeltx/daemonsource")
|
2018-09-01 16:41:02 -04:00
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
set(daemonsource_SOURCES
|
2018-09-11 10:50:55 -04:00
|
|
|
${PLUGIN_PREFIX}/daemonsource.cpp
|
|
|
|
${PLUGIN_PREFIX}/daemonsourcethread.cpp
|
|
|
|
${PLUGIN_PREFIX}/daemonsourceplugin.cpp
|
|
|
|
${PLUGIN_PREFIX}/daemonsourcesettings.cpp
|
2018-09-01 16:41:02 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
set(daemonsource_HEADERS
|
2018-09-11 10:50:55 -04:00
|
|
|
${PLUGIN_PREFIX}/daemonsource.h
|
|
|
|
${PLUGIN_PREFIX}/daemonsourcethread.h
|
|
|
|
${PLUGIN_PREFIX}/daemonsourceplugin.h
|
|
|
|
${PLUGIN_PREFIX}/daemonsourcesettings.h
|
2018-09-01 16:41:02 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CM256CC_INCLUDE_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)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
add_library(daemonsourcesrv SHARED
|
|
|
|
${daemonsource_SOURCES}
|
|
|
|
${daemonsource_HEADERS_MOC}
|
2018-09-01 16:41:02 -04:00
|
|
|
)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
target_link_libraries(daemonsourcesrv
|
2018-09-01 16:41:02 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${CM256CC_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
target_link_libraries(daemonsourcesrv Qt5::Core Qt5::Network)
|
2018-09-01 16:41:02 -04:00
|
|
|
|
2018-09-11 11:05:16 -04:00
|
|
|
install(TARGETS daemonsourcesrv DESTINATION lib/pluginssrv/channeltx)
|