2017-02-23 02:18:56 -05:00
|
|
|
project(atv)
|
|
|
|
|
|
|
|
set(atv_SOURCES
|
2019-12-01 09:13:35 -05:00
|
|
|
atvdemod.cpp
|
|
|
|
atvdemodbaseband.cpp
|
|
|
|
atvdemodsink.cpp
|
2019-08-11 05:35:53 -04:00
|
|
|
atvdemodsettings.cpp
|
|
|
|
atvdemodwebapiadapter.cpp
|
2017-02-23 02:18:56 -05:00
|
|
|
atvdemodgui.cpp
|
|
|
|
atvdemodplugin.cpp
|
2019-05-01 05:54:58 -04:00
|
|
|
atvdemodgui.ui
|
2017-02-23 02:18:56 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(atv_HEADERS
|
2019-12-01 09:13:35 -05:00
|
|
|
atvdemod.h
|
|
|
|
atvdemodbaseband.h
|
|
|
|
atvdemodsink.h
|
2019-08-11 05:35:53 -04:00
|
|
|
atvdemodsettings.h
|
|
|
|
atvdemodwebapiadapter.h
|
2017-02-23 02:18:56 -05:00
|
|
|
atvdemodgui.h
|
|
|
|
atvdemodplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-08-11 05:35:53 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2020-11-05 05:11:43 -05:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-02-23 02:18:56 -05:00
|
|
|
)
|
|
|
|
|
2024-09-03 11:52:00 -04:00
|
|
|
set(TARGET_NAME ${PLUGINS_PREFIX}demodatv)
|
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} ${atv_SOURCES})
|
|
|
|
else()
|
|
|
|
qt_add_plugin(${TARGET_NAME} CLASS_NAME ATVDemodPlugin ${atv_SOURCES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
|
|
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
|
|
|
|
endif()
|
2017-02-23 02:18:56 -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-02-23 02:18:56 -05:00
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2017-02-23 02:18:56 -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()
|