1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-19 06:41:47 -05:00
sdrangel/plugins/samplesource/limesdrinput/CMakeLists.txt

56 lines
1.1 KiB
CMake

project(limesdrinput)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(limesdrinput_SOURCES
limesdrinputgui.cpp
limesdrinput.cpp
limesdrinputplugin.cpp
limesdrinputsettings.cpp
limesdrinputthread.cpp
)
set(limesdrinput_HEADERS
limesdrinputgui.h
limesdrinput.h
limesdrinputplugin.h
limesdrinputsettings.h
limesdrinputthread.h
)
set(limesdrinput_FORMS
limesdrinputgui.ui
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/devices
${LIMESUITE_INCLUDE_DIR}
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(limesdrinput_HEADERS_MOC ${limesdrinput_HEADERS})
qt5_wrap_ui(limesdrinput_FORMS_HEADERS ${limesdrinput_FORMS})
add_library(inputlimesdr SHARED
${limesdrinput_SOURCES}
${limesdrinput_HEADERS_MOC}
${limesdrinput_FORMS_HEADERS}
)
target_link_libraries(inputlimesdr
${QT_LIBRARIES}
${LIMESUITE_LIBRARY}
sdrbase
limesdrdevice
)
qt5_use_modules(inputlimesdr Core Widgets)
install(TARGETS inputlimesdr DESTINATION lib/plugins/samplesource)