1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00
sdrangel/plugins/samplesource/plutosdrinput/CMakeLists.txt

73 lines
1.5 KiB
CMake
Raw Normal View History

project(plutosdrinput)
set(plutosdrinput_SOURCES
plutosdrinputgui.cpp
plutosdrinput.cpp
plutosdrinputplugin.cpp
plutosdrinputsettings.cpp
2017-09-06 00:15:38 -04:00
plutosdrinputthread.cpp
)
set(plutosdrinput_HEADERS
plutosdrinputgui.h
plutosdrinput.h
plutosdrinputplugin.h
plutosdrinputsettings.h
2017-09-06 00:15:38 -04:00
plutosdrinputthread.h
)
2017-09-04 02:39:51 -04:00
set(plutosdrinput_FORMS
plutosdrinputgui.ui
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/devices
${LIBIIOSRC}
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/devices
${LIBIIO_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
#include(${QT_USE_FILE})
#add_definitions(${QT_DEFINITIONS})
add_definitions("${QT_DEFINITIONS} -DLIBHACKRF_DYN_RATES")
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(plutosdrinput_HEADERS_MOC ${plutosdrinput_HEADERS})
qt5_wrap_ui(plutosdrinput_FORMS_HEADERS ${plutosdrinput_FORMS})
add_library(inputplutosdr SHARED
${plutosdrinput_SOURCES}
${plutosdrinput_HEADERS_MOC}
2017-09-04 02:39:51 -04:00
${plutosdrinput_FORMS_HEADERS}
)
if (BUILD_DEBIAN)
target_link_libraries(inputplutosdr
${QT_LIBRARIES}
iio
sdrbase
plutosdrdevice
)
else (BUILD_DEBIAN)
target_link_libraries(inputplutosdr
${QT_LIBRARIES}
${LIBIIO_LIBRARIES}
sdrbase
plutosdrdevice
)
endif (BUILD_DEBIAN)
qt5_use_modules(inputplutosdr Core Widgets)
install(TARGETS inputplutosdr DESTINATION lib/plugins/samplesource)