sdrangel/plugins/channeltx/udpsource/CMakeLists.txt

56 wiersze
995 B
CMake
Czysty Zwykły widok Historia

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