2015-01-10 19:12:58 -05:00
|
|
|
project(lora)
|
|
|
|
|
2018-11-24 15:21:04 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2015-01-10 19:12:58 -05:00
|
|
|
set(lora_SOURCES
|
|
|
|
lorademod.cpp
|
|
|
|
lorademodgui.cpp
|
2017-10-07 16:18:33 -04:00
|
|
|
lorademodsettings.cpp
|
2015-01-10 19:12:58 -05:00
|
|
|
loraplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(lora_HEADERS
|
|
|
|
lorademod.h
|
|
|
|
lorademodgui.h
|
2017-10-07 16:18:33 -04:00
|
|
|
lorademodsettings.h
|
2015-01-10 19:12:58 -05:00
|
|
|
loraplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(lora_FORMS
|
|
|
|
lorademodgui.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_cpp(lora_HEADERS_MOC ${lora_HEADERS})
|
|
|
|
qt5_wrap_ui(lora_FORMS_HEADERS ${lora_FORMS})
|
|
|
|
|
|
|
|
add_library(demodlora SHARED
|
|
|
|
${lora_SOURCES}
|
|
|
|
${lora_HEADERS_MOC}
|
|
|
|
${lora_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(demodlora
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2015-01-10 19:12:58 -05:00
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(demodlora Qt5::Core Qt5::Widgets)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
2016-10-02 07:18:07 -04:00
|
|
|
install(TARGETS demodlora DESTINATION lib/plugins/channelrx)
|