2014-05-18 15:52:39 +00:00
|
|
|
project(nfm)
|
|
|
|
|
2017-12-10 19:27:08 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2014-05-18 15:52:39 +00:00
|
|
|
set(nfm_SOURCES
|
|
|
|
nfmdemod.cpp
|
|
|
|
nfmdemodgui.cpp
|
2017-10-08 07:58:19 +00:00
|
|
|
nfmdemodsettings.cpp
|
2014-05-18 15:52:39 +00:00
|
|
|
nfmplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(nfm_HEADERS
|
|
|
|
nfmdemod.h
|
|
|
|
nfmdemodgui.h
|
2017-10-08 07:58:19 +00:00
|
|
|
nfmdemodsettings.h
|
2014-05-18 15:52:39 +00:00
|
|
|
nfmplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(nfm_FORMS
|
|
|
|
nfmdemodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-12-10 19:27:08 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt5_wrap_cpp(nfm_HEADERS_MOC ${nfm_HEADERS})
|
|
|
|
qt5_wrap_ui(nfm_FORMS_HEADERS ${nfm_FORMS})
|
|
|
|
|
|
|
|
add_library(demodnfm SHARED
|
|
|
|
${nfm_SOURCES}
|
|
|
|
${nfm_HEADERS_MOC}
|
|
|
|
${nfm_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodnfm
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2017-12-10 19:27:08 +00:00
|
|
|
swagger
|
2014-05-18 15:52:39 +00:00
|
|
|
)
|
|
|
|
|
2016-10-27 06:46:06 +00:00
|
|
|
qt5_use_modules(demodnfm Core Widgets)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2016-10-02 11:18:07 +00:00
|
|
|
install(TARGETS demodnfm DESTINATION lib/plugins/channelrx)
|