1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 14:21:49 -05:00
sdrangel/plugins/channeltx/udpsource/CMakeLists.txt

56 lines
995 B
CMake
Raw Normal View History

2018-09-11 16:36:16 -04:00
project(udpsource)
2017-08-13 19:39:26 -04:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2018-09-11 16:36:16 -04:00
set(udpsource_SOURCES
udpsource.cpp
udpsourcegui.cpp
udpsourceplugin.cpp
udpsourceudphandler.cpp
udpsourcemsg.cpp
udpsourcesettings.cpp
2017-08-13 19:39:26 -04:00
)
2018-09-11 16:36:16 -04:00
set(udpsource_HEADERS
udpsource.h
udpsourcegui.h
udpsourceplugin.h
udpsourceudphandler.h
udpsourcemsg.h
udpsourcesettings.h
2017-08-13 19:39:26 -04:00
)
2018-09-11 16:36:16 -04:00
set(udpsource_FORMS
udpsourcegui.ui
2017-08-13 19:39:26 -04:00
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
2017-08-13 19:39:26 -04:00
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
2018-09-11 16:36:16 -04:00
qt5_wrap_ui(udpsource_FORMS_HEADERS ${udpsource_FORMS})
2017-08-13 19:39:26 -04:00
2018-09-11 16:36:16 -04:00
add_library(udpsource SHARED
${udpsource_SOURCES}
${udpsource_HEADERS_MOC}
${udpsource_FORMS_HEADERS}
2017-08-13 19:39:26 -04:00
)
2018-09-11 16:36:16 -04:00
target_link_libraries(udpsource
2017-08-13 19:39:26 -04:00
${QT_LIBRARIES}
sdrbase
sdrgui
swagger
2017-08-13 19:39:26 -04:00
)
2018-09-11 16:36:16 -04:00
target_link_libraries(udpsource Qt5::Core Qt5::Widgets Qt5::Network)
2017-08-13 19:39:26 -04:00
2018-09-11 16:36:16 -04:00
install(TARGETS udpsource DESTINATION lib/plugins/channeltx)