2017-12-17 04:25:08 -05:00
|
|
|
project(nfm)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(PLUGIN_PREFIX "../../../plugins/channelrx/demodnfm")
|
|
|
|
|
|
|
|
set(nfm_SOURCES
|
|
|
|
${PLUGIN_PREFIX}/nfmdemod.cpp
|
|
|
|
${PLUGIN_PREFIX}/nfmdemodsettings.cpp
|
|
|
|
${PLUGIN_PREFIX}/nfmplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(nfm_HEADERS
|
|
|
|
${PLUGIN_PREFIX}/nfmdemod.h
|
|
|
|
${PLUGIN_PREFIX}/nfmdemodsettings.h
|
|
|
|
${PLUGIN_PREFIX}/nfmplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_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)
|
|
|
|
|
|
|
|
add_library(demodnfmsrv SHARED
|
|
|
|
${nfm_SOURCES}
|
|
|
|
${nfm_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodnfmsrv
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
swagger
|
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(demodnfmsrv Qt5::Core)
|
2017-12-17 04:25:08 -05:00
|
|
|
|
|
|
|
install(TARGETS demodnfmsrv DESTINATION lib/pluginssrv/channelrx)
|