sdrangel/plugins/samplesource/plutosdrinput/CMakeLists.txt

73 wiersze
1.5 KiB
CMake
Czysty Zwykły widok Historia

project(plutosdrinput)
set(plutosdrinput_SOURCES
plutosdrinputgui.cpp
plutosdrinput.cpp
plutosdrinputplugin.cpp
plutosdrinputsettings.cpp
2017-09-06 04:15:38 +00:00
plutosdrinputthread.cpp
)
set(plutosdrinput_HEADERS
plutosdrinputgui.h
plutosdrinput.h
plutosdrinputplugin.h
plutosdrinputsettings.h
2017-09-06 04:15:38 +00:00
plutosdrinputthread.h
)
2017-09-04 06:39:51 +00: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 06:39:51 +00: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)