2018-05-30 09:42:33 -04:00
|
|
|
project(chanalyzer)
|
2017-01-29 13:51:45 -05:00
|
|
|
|
2018-05-30 09:42:33 -04:00
|
|
|
set(chanalyzer_SOURCES
|
2018-05-30 09:37:56 -04:00
|
|
|
chanalyzer.cpp
|
|
|
|
chanalyzergui.cpp
|
|
|
|
chanalyzerplugin.cpp
|
2019-11-24 04:12:58 -05:00
|
|
|
chanalyzersettings.cpp
|
|
|
|
chanalyzersink.cpp
|
|
|
|
chanalyzerbaseband.cpp
|
2019-08-08 12:42:17 -04:00
|
|
|
chanalyzerwebapiadapter.cpp
|
2019-05-01 05:54:58 -04:00
|
|
|
chanalyzergui.ui
|
2017-01-29 13:51:45 -05:00
|
|
|
)
|
|
|
|
|
2018-05-30 09:42:33 -04:00
|
|
|
set(chanalyzer_HEADERS
|
2018-05-30 09:37:56 -04:00
|
|
|
chanalyzer.h
|
|
|
|
chanalyzergui.h
|
|
|
|
chanalyzerplugin.h
|
2019-11-24 04:12:58 -05:00
|
|
|
chanalyzersettings.h
|
|
|
|
chanalyzersink.h
|
|
|
|
chanalyzerbaseband.h
|
2019-08-08 12:42:17 -04:00
|
|
|
chanalyzerwebapiadapter.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2020-11-05 05:11:43 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-01-29 13:51:45 -05:00
|
|
|
)
|
|
|
|
|
2024-09-03 11:52:00 -04:00
|
|
|
set(TARGET_NAME ${PLUGINS_PREFIX}chanalyzer)
|
2022-02-06 07:56:58 -05:00
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
|
|
|
|
2024-09-11 15:16:40 -04:00
|
|
|
if(NOT Qt6_FOUND)
|
|
|
|
add_library(${TARGET_NAME} ${chanalyzer_SOURCES})
|
|
|
|
else()
|
|
|
|
qt_add_plugin(${TARGET_NAME} CLASS_NAME ChannelAnalyzerPlugin ${chanalyzer_SOURCES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
|
|
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
|
|
|
|
endif()
|
2017-01-29 13:51:45 -05:00
|
|
|
|
2024-09-11 15:16:40 -04:00
|
|
|
target_link_libraries(${TARGET_NAME} PRIVATE
|
2022-11-17 09:34:54 -05:00
|
|
|
Qt::Core
|
|
|
|
Qt::Widgets
|
2017-01-29 13:51:45 -05:00
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-01-29 13:51:45 -05:00
|
|
|
)
|
|
|
|
|
2022-02-06 07:56:58 -05:00
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
|
|
|
|
|
|
|
# Install debug symbols
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
|
|
|
|
endif()
|