2019-02-22 01:17:27 -05:00
|
|
|
project(modfreedv)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
set(modfreedv_SOURCES
|
|
|
|
freedvmod.cpp
|
|
|
|
freedvmodgui.cpp
|
|
|
|
freedvmodplugin.cpp
|
|
|
|
freedvmodsettings.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(modfreedv_HEADERS
|
|
|
|
freedvmod.h
|
|
|
|
freedvmodgui.h
|
|
|
|
freedvmodplugin.h
|
|
|
|
freedvmodsettings.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(modfreedv_FORMS
|
|
|
|
freedvmodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2019-02-23 19:09:22 -05:00
|
|
|
${CODEC2_INCLUDE_DIR}
|
2019-02-22 01:17:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(modfreedv_FORMS_HEADERS ${modfreedv_FORMS})
|
|
|
|
|
|
|
|
add_library(modfreedv SHARED
|
|
|
|
${modfreedv_SOURCES}
|
|
|
|
${modfreedv_HEADERS_MOC}
|
|
|
|
${modfreedv_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modfreedv
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
sdrgui
|
|
|
|
swagger
|
2019-02-23 19:09:22 -05:00
|
|
|
${CODEC2_LIBRARIES}
|
2019-02-22 01:17:27 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modfreedv Qt5::Core Qt5::Widgets)
|
|
|
|
|
|
|
|
install(TARGETS modfreedv DESTINATION lib/plugins/channeltx)
|