mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-03 15:31:15 -05:00
53 lines
935 B
CMake
53 lines
935 B
CMake
project(filesink)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(filesink_SOURCES
|
|
filesinkgui.cpp
|
|
filesinkoutput.cpp
|
|
filesinkplugin.cpp
|
|
filesinksettings.cpp
|
|
filesinkthread.cpp
|
|
)
|
|
|
|
set(filesink_HEADERS
|
|
filesinkgui.h
|
|
filesinkoutput.h
|
|
filesinkplugin.h
|
|
filesinksettings.h
|
|
filesinkthread.h
|
|
)
|
|
|
|
set(filesink_FORMS
|
|
filesinkgui.ui
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
)
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
add_definitions(-DQT_PLUGIN)
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
qt5_wrap_ui(filesink_FORMS_HEADERS ${filesink_FORMS})
|
|
|
|
add_library(outputfilesink SHARED
|
|
${filesink_SOURCES}
|
|
${filesink_HEADERS_MOC}
|
|
${filesink_FORMS_HEADERS}
|
|
)
|
|
|
|
target_link_libraries(outputfilesink
|
|
${QT_LIBRARIES}
|
|
sdrbase
|
|
sdrgui
|
|
swagger
|
|
)
|
|
|
|
target_link_libraries(outputfilesink Qt5::Core Qt5::Widgets)
|
|
|
|
install(TARGETS outputfilesink DESTINATION lib/plugins/samplesink)
|