2016-12-26 21:11:57 -05:00
|
|
|
project(bladerfinput)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
2016-12-26 21:11:57 -05:00
|
|
|
set(bladerfinput_SOURCES
|
2016-12-26 20:14:31 -05:00
|
|
|
bladerfinputgui.cpp
|
2015-06-06 21:30:28 -04:00
|
|
|
bladerfinput.cpp
|
2016-12-26 20:14:31 -05:00
|
|
|
bladerfinputplugin.cpp
|
|
|
|
bladerfinputsettings.cpp
|
|
|
|
bladerfinputthread.cpp
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-12-26 21:11:57 -05:00
|
|
|
set(bladerfinput_HEADERS
|
2016-12-26 20:14:31 -05:00
|
|
|
bladerfinputgui.h
|
2015-06-06 21:30:28 -04:00
|
|
|
bladerfinput.h
|
2016-12-26 20:14:31 -05:00
|
|
|
bladerfinputplugin.h
|
|
|
|
bladerfinputsettings.h
|
|
|
|
bladerfinputthread.h
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-12-26 21:11:57 -05:00
|
|
|
set(bladerfinput_FORMS
|
2016-12-26 20:14:31 -05:00
|
|
|
bladerfinputgui.ui
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2016-12-30 10:13:28 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2016-11-02 10:51:45 -04:00
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2016-12-30 10:13:28 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
2015-09-02 21:57:54 -04:00
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
2016-11-02 10:51:45 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2016-12-26 21:11:57 -05:00
|
|
|
#qt4_wrap_cpp(bladerfinput_HEADERS_MOC ${bladerfinput_HEADERS})
|
|
|
|
qt5_wrap_ui(bladerfinput_FORMS_HEADERS ${bladerfinput_FORMS})
|
2015-06-06 21:30:28 -04:00
|
|
|
|
|
|
|
add_library(inputbladerf SHARED
|
2016-12-26 21:11:57 -05:00
|
|
|
${bladerfinput_SOURCES}
|
|
|
|
${bladerfinput_HEADERS_MOC}
|
|
|
|
${bladerfinput_FORMS_HEADERS}
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(inputbladerf
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2016-12-30 10:13:28 -05:00
|
|
|
bladerfdevice
|
2016-11-02 10:51:45 -04:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
target_link_libraries(inputbladerf
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2016-12-30 10:13:28 -05:00
|
|
|
bladerfdevice
|
2015-06-06 21:30:28 -04:00
|
|
|
)
|
2016-11-02 10:51:45 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
|
2016-10-27 02:38:50 -04:00
|
|
|
qt5_use_modules(inputbladerf Core Widgets)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
|
|
|
install(TARGETS inputbladerf DESTINATION lib/plugins/samplesource)
|