1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 16:38:37 -05:00
sdrangel/plugins/samplesource/rtlsdr/CMakeLists.txt
2016-03-29 09:36:19 +02:00

52 lines
880 B
CMake

project(rtlsdr)
set(rtlsdr_SOURCES
rtlsdrgui.cpp
rtlsdrinput.cpp
rtlsdrplugin.cpp
rtlsdrsettings.cpp
rtlsdrthread.cpp
)
set(rtlsdr_HEADERS
rtlsdrgui.h
rtlsdrinput.h
rtlsdrplugin.h
rtlsdrsettings.h
rtlsdrthread.h
)
set(rtlsdr_FORMS
rtlsdrgui.ui
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBRTLSDR_INCLUDE_DIR}
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(rtlsdr_HEADERS_MOC ${rtlsdr_HEADERS})
qt5_wrap_ui(rtlsdr_FORMS_HEADERS ${rtlsdr_FORMS})
add_library(inputrtlsdr SHARED
${rtlsdr_SOURCES}
${rtlsdr_HEADERS_MOC}
${rtlsdr_FORMS_HEADERS}
)
target_link_libraries(inputrtlsdr
${QT_LIBRARIES}
${LIBRTLSDR_LIBRARIES}
sdrbase
)
qt5_use_modules(inputrtlsdr Core Widgets OpenGL Multimedia)
install(TARGETS inputrtlsdr DESTINATION lib/plugins/samplesource)