1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 17:46:03 -05:00
sdrangel/plugins/channeltx/daemonsource/CMakeLists.txt
2018-09-11 17:05:16 +02:00

56 lines
1.0 KiB
CMake

project(daemonsource)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(daemonsource_SOURCES
daemonsource.cpp
daemonsourcethread.cpp
daemonsourcegui.cpp
daemonsourceplugin.cpp
daemonsourcesettings.cpp
)
set(daemonsource_HEADERS
daemonsource.h
daemonsourcethread.h
daemonsourcegui.h
daemonsourceplugin.h
daemonsourcesettings.h
)
set(daemonsource_FORMS
daemonsourcegui.ui
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CM256CC_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
qt5_wrap_ui(daemonsource_FORMS_HEADERS ${daemonsource_FORMS})
add_library(daemonsource SHARED
${daemonsource_SOURCES}
${daemonsource_HEADERS_MOC}
${daemonsource_FORMS_HEADERS}
)
target_link_libraries(daemonsource
${QT_LIBRARIES}
${CM256CC_LIBRARIES}
sdrbase
sdrgui
swagger
)
target_link_libraries(daemonsource Qt5::Core Qt5::Widgets Qt5::Network)
install(TARGETS daemonsource DESTINATION lib/plugins/channeltx)