2018-09-19 07:28:14 -04:00
|
|
|
project(bladerf1input)
|
2018-04-05 15:24:01 -04:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
2018-09-19 07:28:14 -04:00
|
|
|
set(PLUGIN_PREFIX "../../../plugins/samplesource/bladerf1input")
|
2018-04-05 15:24:01 -04:00
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
set(bladerf1input_SOURCES
|
2018-09-19 02:56:39 -04:00
|
|
|
${PLUGIN_PREFIX}/bladerf1input.cpp
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputplugin.cpp
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputsettings.cpp
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputthread.cpp
|
2018-04-05 15:24:01 -04:00
|
|
|
)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
set(bladerf1input_HEADERS
|
2018-09-19 02:56:39 -04:00
|
|
|
${PLUGIN_PREFIX}/bladerf1input.h
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputplugin.h
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputsettings.h
|
|
|
|
${PLUGIN_PREFIX}/bladerf1inputthread.h
|
2018-04-05 15:24:01 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-09-19 07:28:14 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2018-04-05 15:24:01 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-09-19 07:28:14 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2018-04-05 15:24:01 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
add_library(inputbladerf1srv SHARED
|
|
|
|
${bladerf1input_SOURCES}
|
|
|
|
${bladerf1input_HEADERS_MOC}
|
2018-04-05 15:24:01 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1srv
|
2018-04-05 15:24:01 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2018-04-05 15:24:01 -04:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1srv
|
2018-04-05 15:24:01 -04:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
swagger
|
2018-09-18 23:26:18 -04:00
|
|
|
bladerf1device
|
2018-04-05 15:24:01 -04:00
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
target_link_libraries(inputbladerf1srv Qt5::Core)
|
2018-04-05 15:24:01 -04:00
|
|
|
|
2018-09-19 07:28:14 -04:00
|
|
|
install(TARGETS inputbladerf1srv DESTINATION lib/pluginssrv/samplesource)
|