1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 21:01:45 -05:00
sdrangel/pluginssrv/channeltx/udpsource/CMakeLists.txt
2018-09-11 23:22:59 +02:00

46 lines
1.0 KiB
CMake

project(udpsource)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/channeltx/udpsource")
set(udpsource_SOURCES
${PLUGIN_PREFIX}/udpsource.cpp
${PLUGIN_PREFIX}/udpsourceplugin.cpp
${PLUGIN_PREFIX}/udpsourceudphandler.cpp
${PLUGIN_PREFIX}/udpsourcemsg.cpp
${PLUGIN_PREFIX}/udpsourcesettings.cpp
)
set(udpsource_HEADERS
${PLUGIN_PREFIX}/udpsource.h
${PLUGIN_PREFIX}/udpsourceplugin.h
${PLUGIN_PREFIX}/udpsourceudphandler.h
${PLUGIN_PREFIX}/udpsourcemsg.h
${PLUGIN_PREFIX}/udpsourcesettings.h
)
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)
add_library(udpsourcesrv SHARED
${udpsource_SOURCES}
${udpsource_HEADERS_MOC}
)
target_link_libraries(udpsourcesrv
${QT_LIBRARIES}
sdrbase
swagger
)
target_link_libraries(udpsourcesrv Qt5::Core Qt5::Network)
install(TARGETS udpsourcesrv DESTINATION lib/pluginssrv/channeltx)