2016-12-17 06:58:40 +00:00
|
|
|
project(modwfm)
|
|
|
|
|
2018-03-29 15:27:03 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-12-17 06:58:40 +00:00
|
|
|
set(modwfm_SOURCES
|
|
|
|
wfmmod.cpp
|
|
|
|
wfmmodgui.cpp
|
|
|
|
wfmmodplugin.cpp
|
2017-10-12 20:49:47 +00:00
|
|
|
wfmmodsettings.cpp
|
2016-12-17 06:58:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modwfm_HEADERS
|
|
|
|
wfmmod.h
|
|
|
|
wfmmodgui.h
|
|
|
|
wfmmodplugin.h
|
2017-10-12 20:49:47 +00:00
|
|
|
wfmmodsettings.h
|
2016-12-17 06:58:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modwfm_FORMS
|
|
|
|
wfmmodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-04-08 22:37:17 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-12-17 06:58:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(modwfm_FORMS_HEADERS ${modwfm_FORMS})
|
|
|
|
|
|
|
|
add_library(modwfm SHARED
|
|
|
|
${modwfm_SOURCES}
|
|
|
|
${modwfm_HEADERS_MOC}
|
|
|
|
${modwfm_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modwfm
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2018-04-08 22:37:17 +00:00
|
|
|
swagger
|
2016-12-17 06:58:40 +00:00
|
|
|
)
|
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(modwfm Qt5::Core Qt5::Widgets)
|
2016-12-17 06:58:40 +00:00
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
install(TARGETS modwfm DESTINATION lib/plugins/channeltx)
|