2018-05-30 13:42:33 +00:00
|
|
|
project(chanalyzer)
|
2017-01-29 18:51:45 +00:00
|
|
|
|
2018-11-24 20:21:04 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
set(chanalyzer_SOURCES
|
2018-05-30 13:37:56 +00:00
|
|
|
chanalyzer.cpp
|
|
|
|
chanalyzergui.cpp
|
|
|
|
chanalyzerplugin.cpp
|
|
|
|
chanalyzersettings.cpp
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
set(chanalyzer_HEADERS
|
2018-05-30 13:37:56 +00:00
|
|
|
chanalyzer.h
|
|
|
|
chanalyzergui.h
|
|
|
|
chanalyzerplugin.h
|
|
|
|
chanalyzersettings.h
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
set(chanalyzer_FORMS
|
|
|
|
chanalyzergui.ui
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-12-02 02:06:04 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
#qt5_wrap_cpp(chanalyzer_HEADERS_MOC ${chanalyzer_HEADERS})
|
2018-05-30 13:42:33 +00:00
|
|
|
qt5_wrap_ui(chanalyzer_FORMS_HEADERS ${chanalyzer_FORMS})
|
2017-01-29 18:51:45 +00:00
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
add_library(chanalyzer SHARED
|
|
|
|
${chanalyzer_SOURCES}
|
|
|
|
${chanalyzer_HEADERS_MOC}
|
|
|
|
${chanalyzer_FORMS_HEADERS}
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
target_link_libraries(chanalyzer
|
2017-01-29 18:51:45 +00:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 17:12:43 +00:00
|
|
|
sdrgui
|
2017-01-29 18:51:45 +00:00
|
|
|
)
|
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(chanalyzer Qt5::Core Qt5::Widgets)
|
2017-01-29 18:51:45 +00:00
|
|
|
|
2018-05-30 13:42:33 +00:00
|
|
|
install(TARGETS chanalyzer DESTINATION lib/plugins/channelrx)
|