2019-01-02 09:35:43 -05:00
|
|
|
project(xtrxoutput)
|
|
|
|
|
|
|
|
set(xtrxoutput_SOURCES
|
|
|
|
xtrxoutput.cpp
|
|
|
|
xtrxoutputplugin.cpp
|
|
|
|
xtrxoutputsettings.cpp
|
2020-02-27 05:17:16 -05:00
|
|
|
xtrxoutputthread.cpp
|
|
|
|
xtrxoutputwebapiadapter.cpp
|
2019-01-02 09:35:43 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(xtrxoutput_HEADERS
|
|
|
|
xtrxoutput.h
|
|
|
|
xtrxoutputplugin.h
|
|
|
|
xtrxoutputsettings.h
|
2020-02-27 05:17:16 -05:00
|
|
|
xtrxoutputthread.h
|
|
|
|
xtrxoutputwebapiadapter.h
|
2019-01-02 09:35:43 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2020-02-27 05:17:16 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2019-01-02 09:35:43 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBXTRX_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(xtrxoutput_SOURCES
|
|
|
|
${xtrxoutput_SOURCES}
|
|
|
|
xtrxoutputgui.cpp
|
|
|
|
xtrxoutputgui.ui
|
|
|
|
)
|
|
|
|
set(xtrxoutput_HEADERS
|
|
|
|
${xtrxoutput_HEADERS}
|
|
|
|
xtrxoutputgui.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(TARGET_NAME outputxtrx)
|
|
|
|
set(TARGET_LIB "Qt5::Widgets")
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
2019-05-01 09:17:27 -04:00
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
2019-05-01 05:54:58 -04:00
|
|
|
else()
|
|
|
|
set(TARGET_NAME outputxtrxsrv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
2019-05-01 09:17:27 -04:00
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
2019-05-01 05:54:58 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
2019-01-02 09:35:43 -05:00
|
|
|
${xtrxoutput_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
target_link_libraries(${TARGET_NAME}
|
2020-02-27 05:17:16 -05:00
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
2019-01-02 09:35:43 -05:00
|
|
|
sdrbase
|
2019-05-01 05:54:58 -04:00
|
|
|
${TARGET_LIB_GUI}
|
2020-02-27 05:17:16 -05:00
|
|
|
swagger
|
|
|
|
${LIBXTRX_LIBRARY}
|
|
|
|
xtrxdevice
|
2019-01-02 09:35:43 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:17:27 -04:00
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|