1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00
sdrangel/pluginssrv/channeltx/udpsource/CMakeLists.txt

46 lines
1.0 KiB
CMake
Raw Normal View History

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