2015-06-06 21:30:28 -04:00
|
|
|
project(bladerf)
|
|
|
|
|
|
|
|
set(bladerf_SOURCES
|
|
|
|
bladerfgui.cpp
|
|
|
|
bladerfinput.cpp
|
|
|
|
bladerfplugin.cpp
|
2015-09-30 12:55:45 -04:00
|
|
|
bladerfsettings.cpp
|
2015-06-06 21:30:28 -04:00
|
|
|
bladerfthread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(bladerf_HEADERS
|
|
|
|
bladerfgui.h
|
|
|
|
bladerfinput.h
|
|
|
|
bladerfplugin.h
|
2015-09-30 12:55:45 -04:00
|
|
|
bladerfsettings.h
|
2015-06-06 21:30:28 -04:00
|
|
|
bladerfthread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(bladerf_FORMS
|
|
|
|
bladerfgui.ui
|
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
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)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(bladerf_HEADERS_MOC ${bladerf_HEADERS})
|
|
|
|
qt5_wrap_ui(bladerf_FORMS_HEADERS ${bladerf_FORMS})
|
|
|
|
|
|
|
|
add_library(inputbladerf SHARED
|
|
|
|
${bladerf_SOURCES}
|
|
|
|
${bladerf_HEADERS_MOC}
|
|
|
|
${bladerf_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
2016-11-02 10:51:45 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(inputbladerf
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2015-06-06 21:30:28 -04:00
|
|
|
target_link_libraries(inputbladerf
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
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)
|