2016-11-29 17:58:41 -05:00
|
|
|
project(modnfm)
|
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-11-29 17:58:41 -05:00
|
|
|
set(modnfm_SOURCES
|
|
|
|
nfmmod.cpp
|
|
|
|
nfmmodgui.cpp
|
|
|
|
nfmmodplugin.cpp
|
2017-10-10 17:43:40 -04:00
|
|
|
nfmmodsettings.cpp
|
2016-11-29 17:58:41 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modnfm_HEADERS
|
|
|
|
nfmmod.h
|
|
|
|
nfmmodgui.h
|
|
|
|
nfmmodplugin.h
|
2017-10-10 17:43:40 -04:00
|
|
|
nfmmodsettings.h
|
2016-11-29 17:58:41 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(modnfm_FORMS
|
|
|
|
nfmmodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-10 14:27:08 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2016-11-29 17:58:41 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(modnfm_FORMS_HEADERS ${modnfm_FORMS})
|
|
|
|
|
|
|
|
add_library(modnfm SHARED
|
|
|
|
${modnfm_SOURCES}
|
|
|
|
${modnfm_HEADERS_MOC}
|
|
|
|
${modnfm_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modnfm
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-12-10 14:27:08 -05:00
|
|
|
swagger
|
2016-11-29 17:58:41 -05:00
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(modnfm Qt5::Core Qt5::Widgets)
|
2016-11-29 17:58:41 -05:00
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
install(TARGETS modnfm DESTINATION lib/plugins/channeltx)
|