2018-08-18 09:51:46 -04:00
|
|
|
project (sdrdaemon)
|
|
|
|
|
|
|
|
set(sdrdaemon_SOURCES
|
|
|
|
sdrdaemonmain.cpp
|
|
|
|
sdrdaemonpreferences.cpp
|
|
|
|
sdrdaemonsettings.cpp
|
2018-08-18 18:49:08 -04:00
|
|
|
sdrdaemonparser.cpp
|
2018-08-19 17:36:30 -04:00
|
|
|
channel/sdrdaemonchannelsink.cpp
|
2018-08-19 18:38:33 -04:00
|
|
|
channel/sdrdaemonchannelsource.cpp
|
2018-08-20 08:05:27 -04:00
|
|
|
channel/sdrdaemondataqueue.cpp
|
2018-08-20 11:36:42 -04:00
|
|
|
channel/sdrdaemonchannelsinkthread.cpp
|
2018-08-23 02:41:41 -04:00
|
|
|
channel/sdrdaemonchannelsinksettings.cpp
|
2018-08-23 16:45:43 -04:00
|
|
|
channel/sdrdaemonchannelsourcesettings.cpp
|
2018-08-24 02:43:15 -04:00
|
|
|
channel/sdrdaemonchannelsourcethread.cpp
|
2018-08-18 09:51:46 -04:00
|
|
|
webapi/webapiadapterdaemon.cpp
|
|
|
|
webapi/webapirequestmapper.cpp
|
|
|
|
webapi/webapiserver.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemon_HEADERS
|
|
|
|
sdrdaemonmain.h
|
|
|
|
sdrdaemonpreferences.h
|
|
|
|
sdrdaemonsettings.h
|
2018-08-18 18:49:08 -04:00
|
|
|
sdrdaemonparser.h
|
2018-08-19 17:36:30 -04:00
|
|
|
channel/sdrdaemonchannelsink.h
|
2018-08-19 18:38:33 -04:00
|
|
|
channel/sdrdaemonchannelsource.h
|
2018-08-20 08:05:27 -04:00
|
|
|
channel/sdrdaemondataqueue.h
|
|
|
|
channel/sdrdaemondatablock.h
|
2018-08-20 11:36:42 -04:00
|
|
|
channel/sdrdaemonchannelsinkthread.h
|
2018-08-23 02:41:41 -04:00
|
|
|
channel/sdrdaemonchannelsinksettings.h
|
2018-08-23 16:45:43 -04:00
|
|
|
channel/sdrdaemonchannelsourcesettings.h
|
2018-08-24 02:43:15 -04:00
|
|
|
channel/sdrdaemonchannelsourcethread.h
|
2018-08-18 09:51:46 -04:00
|
|
|
webapi/webapiadapterdaemon.h
|
|
|
|
webapi/webapirequestmapper.h
|
|
|
|
webapi/webapiserver.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(sdrdaemon_SOURCES
|
|
|
|
${sdrdaemon_SOURCES}
|
|
|
|
${sdrdaemon_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(sdrdaemon SHARED
|
|
|
|
${sdrdaemon_SOURCES}
|
|
|
|
${sdrdaemon_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
|
|
|
${CMAKE_SOURCE_DIR}/sdrbase
|
|
|
|
${CMAKE_SOURCE_DIR}/logging
|
|
|
|
${CMAKE_SOURCE_DIR}/httpserver
|
2018-08-20 12:32:46 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CM256CC_INCLUDE_DIR}
|
2018-08-18 09:51:46 -04:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdrdaemon
|
|
|
|
${QT_LIBRARIES}
|
2018-08-20 12:32:46 -04:00
|
|
|
${CM256CC_LIBRARIES}
|
2018-08-18 09:51:46 -04:00
|
|
|
sdrbase
|
|
|
|
logging
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_features(sdrdaemon PRIVATE cxx_generalized_initializers) # cmake >= 3.1.0
|
|
|
|
|
|
|
|
target_link_libraries(sdrdaemon Qt5::Core Qt5::Multimedia)
|
|
|
|
|
|
|
|
install(TARGETS sdrdaemon DESTINATION lib)
|
|
|
|
|