1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -05:00
sdrangel/plugins/samplesource/sdrdaemon/CMakeLists.txt

59 lines
1.1 KiB
CMake
Raw Normal View History

project(sdrdaemon)
find_package(LZ4)
set(sdrdaemon_SOURCES
2016-01-24 17:38:55 -05:00
sdrdaemonbuffer.cpp
sdrdaemongui.cpp
sdrdaemoninput.cpp
sdrdaemonplugin.cpp
2016-02-16 20:22:05 -05:00
sdrdaemonudphandler.cpp
)
set(sdrdaemon_HEADERS
2016-01-24 17:38:55 -05:00
sdrdaemonbuffer.h
sdrdaemongui.h
sdrdaemoninput.h
sdrdaemonplugin.h
2016-02-16 20:22:05 -05:00
sdrdaemonudphandler.h
)
set(sdrdaemon_FORMS
sdrdaemongui.ui
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include-gpl
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(sdrdaemon_HEADERS_MOC ${sdrdaemon_HEADERS})
qt5_wrap_ui(sdrdaemon_FORMS_HEADERS ${sdrdaemon_FORMS})
add_library(inputsdrdaemon SHARED
${sdrdaemon_SOURCES}
${sdrdaemon_HEADERS_MOC}
${sdrdaemon_FORMS_HEADERS}
)
target_include_directories(inputsdrdaemon PUBLIC
${LZ4_INCLUDE_DIRS}
)
target_link_libraries(inputsdrdaemon
${QT_LIBRARIES}
${LZ4_LIBRARIES}
sdrbase
)
qt5_use_modules(inputsdrdaemon Core Widgets OpenGL Multimedia)
install(TARGETS inputsdrdaemon DESTINATION lib/plugins/samplesource)