1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/plugins/samplesink/localoutput/CMakeLists.txt

57 lines
1.1 KiB
CMake
Raw Normal View History

2019-05-10 17:38:52 -04:00
project(localoutput)
set(localoutput_SOURCES
localoutput.cpp
localoutputplugin.cpp
localoutputsettings.cpp
localoutputwebapiadapter.cpp
2019-05-10 17:38:52 -04:00
)
set(localoutput_HEADERS
localoutput.h
localoutputplugin.h
localoutputsettings.h
localoutputwebapiadapter.h
2019-05-10 17:38:52 -04:00
)
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
2019-05-10 17:38:52 -04:00
)
if(NOT SERVER_MODE)
set(localoutput_SOURCES
${localoutput_SOURCES}
localoutputgui.cpp
localoutputgui.ui
)
set(localoutput_HEADERS
${localoutput_HEADERS}
localoutputgui.h
)
set(TARGET_NAME outputlocal)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME outputlocalsrv)
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
add_library(${TARGET_NAME} SHARED
2019-05-10 17:38:52 -04:00
${localoutput_SOURCES}
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
swagger
2019-05-10 17:38:52 -04:00
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})