2017-04-22 00:40:12 -04:00
|
|
|
project(limesdroutput)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
set(limesdroutput_SOURCES
|
|
|
|
limesdroutputgui.cpp
|
|
|
|
limesdroutput.cpp
|
|
|
|
limesdroutputplugin.cpp
|
|
|
|
limesdroutputsettings.cpp
|
|
|
|
limesdroutputthread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(limesdroutput_HEADERS
|
|
|
|
limesdroutputgui.h
|
|
|
|
limesdroutput.h
|
|
|
|
limesdroutputplugin.h
|
|
|
|
limesdroutputsettings.h
|
|
|
|
limesdroutputthread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(limesdroutput_FORMS
|
|
|
|
limesdroutputgui.ui
|
|
|
|
)
|
|
|
|
|
2017-05-08 21:30:26 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIBLIMESUITESRC}/src
|
2017-05-08 21:46:43 -04:00
|
|
|
${LIBLIMESUITESRC}/src/ADF4002
|
|
|
|
${LIBLIMESUITESRC}/src/ConnectionRegistry
|
|
|
|
${LIBLIMESUITESRC}/src/FPGA_common
|
|
|
|
${LIBLIMESUITESRC}/src/GFIR
|
|
|
|
${LIBLIMESUITESRC}/src/lms7002m
|
|
|
|
${LIBLIMESUITESRC}/src/lms7002m_mcu
|
|
|
|
${LIBLIMESUITESRC}/src/Si5351C
|
|
|
|
${LIBLIMESUITESRC}/src/protocols
|
2017-05-08 21:30:26 -04:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-04-22 00:40:12 -04:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
|
|
${LIMESUITE_INCLUDE_DIR}
|
|
|
|
)
|
2017-05-08 21:30:26 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-04-22 00:40:12 -04:00
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt4_wrap_cpp(limesdroutput_HEADERS_MOC ${limesdroutput_HEADERS})
|
|
|
|
qt5_wrap_ui(limesdroutput_FORMS_HEADERS ${limesdroutput_FORMS})
|
|
|
|
|
|
|
|
add_library(outputlimesdr SHARED
|
|
|
|
${limesdroutput_SOURCES}
|
|
|
|
${limesdroutput_HEADERS_MOC}
|
|
|
|
${limesdroutput_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
2017-05-08 21:30:26 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(outputlimesdr
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
limesuite
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-05-08 21:30:26 -04:00
|
|
|
limesdrdevice
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-04-22 00:40:12 -04:00
|
|
|
target_link_libraries(outputlimesdr
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${LIMESUITE_LIBRARY}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-04-22 00:40:12 -04:00
|
|
|
limesdrdevice
|
|
|
|
)
|
2017-05-08 21:30:26 -04:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-04-22 00:40:12 -04:00
|
|
|
|
2017-04-22 05:33:41 -04:00
|
|
|
qt5_use_modules(outputlimesdr Core Widgets)
|
2017-04-22 00:40:12 -04:00
|
|
|
|
2017-04-22 05:33:41 -04:00
|
|
|
install(TARGETS outputlimesdr DESTINATION lib/plugins/samplesink)
|