2015-12-06 09:30:51 +00:00
|
|
|
project(bfm)
|
|
|
|
|
2018-03-27 21:57:29 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2015-12-06 09:30:51 +00:00
|
|
|
set(bfm_SOURCES
|
|
|
|
bfmdemod.cpp
|
|
|
|
bfmdemodgui.cpp
|
2017-10-01 15:54:48 +00:00
|
|
|
bfmdemodsettings.cpp
|
2015-12-06 09:30:51 +00:00
|
|
|
bfmplugin.cpp
|
2015-12-10 12:39:15 +00:00
|
|
|
rdsdemod.cpp
|
2015-12-11 02:58:35 +00:00
|
|
|
rdsdecoder.cpp
|
2015-12-13 08:45:29 +00:00
|
|
|
rdsparser.cpp
|
|
|
|
rdstmc.cpp
|
2015-12-06 09:30:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(bfm_HEADERS
|
|
|
|
bfmdemod.h
|
|
|
|
bfmdemodgui.h
|
2017-10-01 15:54:48 +00:00
|
|
|
bfmdemodsettings.h
|
2015-12-06 09:30:51 +00:00
|
|
|
bfmplugin.h
|
2015-12-10 12:39:15 +00:00
|
|
|
rdsdemod.h
|
2015-12-11 02:58:35 +00:00
|
|
|
rdsdecoder.h
|
2015-12-13 08:45:29 +00:00
|
|
|
rdsparser.h
|
|
|
|
rdstmc.h
|
2015-12-06 09:30:51 +00:00
|
|
|
)
|
|
|
|
|
2018-03-04 00:47:51 +00:00
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
|
|
set_source_files_properties(rdstmc.cpp PROPERTIES COMPILE_FLAGS -fno-var-tracking-assignments)
|
|
|
|
endif()
|
2017-12-31 01:14:46 +00:00
|
|
|
|
2015-12-06 09:30:51 +00:00
|
|
|
set(bfm_FORMS
|
|
|
|
bfmdemodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(bfm_FORMS_HEADERS ${bfm_FORMS})
|
|
|
|
|
|
|
|
add_library(demodbfm SHARED
|
|
|
|
${bfm_SOURCES}
|
|
|
|
${bfm_HEADERS_MOC}
|
|
|
|
${bfm_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodbfm
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2015-12-06 09:30:51 +00:00
|
|
|
)
|
|
|
|
|
2016-10-27 06:46:06 +00:00
|
|
|
qt5_use_modules(demodbfm Core Widgets)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2016-10-02 11:18:07 +00:00
|
|
|
install(TARGETS demodbfm DESTINATION lib/plugins/channelrx)
|