2018-09-19 02:42:59 -04:00
|
|
|
project(bladerf1output)
|
2017-01-02 04:39:21 -05:00
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
set(bladerf1output_SOURCES
|
|
|
|
bladerf1output.cpp
|
|
|
|
bladerf1outputplugin.cpp
|
2019-08-04 14:24:44 -04:00
|
|
|
bladerf1outputsettings.cpp
|
|
|
|
bladerf1outputwebapiadapter.cpp
|
2018-09-19 02:42:59 -04:00
|
|
|
bladerf1outputthread.cpp
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2018-09-19 02:42:59 -04:00
|
|
|
set(bladerf1output_HEADERS
|
|
|
|
bladerf1output.h
|
|
|
|
bladerf1soutputplugin.h
|
2019-08-04 14:24:44 -04:00
|
|
|
bladerf1outputsettings.h
|
|
|
|
bladerf1outputwebapiadapter.h
|
2018-09-19 02:42:59 -04:00
|
|
|
bladerf1outputthread.h
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-01 05:54:58 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-01-02 04:39:21 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2019-05-09 08:18:27 -04:00
|
|
|
${LIBBLADERF_INCLUDE_DIRS}
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(bladerf1output_SOURCES
|
|
|
|
${bladerf1output_SOURCES}
|
|
|
|
bladerf1outputgui.cpp
|
|
|
|
|
|
|
|
bladerf1outputgui.ui
|
|
|
|
)
|
|
|
|
set(bladerf1output_HEADERS
|
|
|
|
${bladerf1output_HEADERS}
|
|
|
|
bladerf1outputgui.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(TARGET_NAME outputbladerf1)
|
2022-11-17 09:34:54 -05:00
|
|
|
set(TARGET_LIB "Qt::Widgets")
|
2019-05-01 05:54:58 -04:00
|
|
|
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 outputbladerf1srv)
|
|
|
|
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
|
2018-09-19 02:42:59 -04:00
|
|
|
${bladerf1output_SOURCES}
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(LIBBLADERF_EXTERNAL)
|
2019-06-02 17:28:37 -04:00
|
|
|
add_dependencies(${TARGET_NAME} bladerf)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
target_link_libraries(${TARGET_NAME}
|
2022-11-17 09:34:54 -05:00
|
|
|
Qt::Core
|
2019-05-01 05:54:58 -04:00
|
|
|
${TARGET_LIB}
|
2017-01-02 04:39:21 -05:00
|
|
|
sdrbase
|
2019-05-01 05:54:58 -04:00
|
|
|
${TARGET_LIB_GUI}
|
|
|
|
swagger
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
bladerf1device
|
2017-01-02 04:39:21 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:17:27 -04:00
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
2022-02-06 07:56:58 -05:00
|
|
|
|
|
|
|
# Install debug symbols
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
|
|
|
|
endif()
|