1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00
sdrangel/plugins/channelrx/demodft8/CMakeLists.txt

82 lines
1.8 KiB
CMake
Raw Normal View History

2023-01-14 19:22:57 -05:00
project(demodft8)
set(demodft8_SOURCES
ft8demod.cpp
ft8demodsettings.cpp
ft8demodsink.cpp
ft8demodbaseband.cpp
ft8demodwebapiadapter.cpp
ft8plugin.cpp
2023-01-18 17:00:59 -05:00
ft8buffer.cpp
ft8demodworker.cpp
2023-01-14 19:22:57 -05:00
)
set(demodft8_HEADERS
ft8demod.h
ft8demodsettings.h
ft8demodsink.h
ft8demodbaseband.h
ft8demodwebapiadapter.h
ft8plugin.h
2023-01-18 17:00:59 -05:00
ft8buffer.h
ft8demodworker.h;
2023-01-14 19:22:57 -05:00
)
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
2023-01-19 17:51:43 -05:00
${CMAKE_SOURCE_DIR}/ft8
${FFTW3F_INCLUDE_DIRS}
2023-01-14 19:22:57 -05:00
)
if(NOT SERVER_MODE)
set(demodft8_SOURCES
${demodft8_SOURCES}
ft8demodgui.cpp
ft8demodfilterproxy.cpp
2023-01-14 19:22:57 -05:00
ft8demodgui.ui
2023-01-22 14:08:32 -05:00
ft8demodsettingsdialog.cpp
ft8demodsettingsdialog.ui
2023-01-14 19:22:57 -05:00
)
set(demodft8_HEADERS
${demodft8_HEADERS}
ft8demodgui.h
ft8demodfilterproxy.h
2023-01-22 14:08:32 -05:00
ft8demodsettingsdialog.h
2023-01-14 19:22:57 -05:00
)
set(TARGET_NAME ${PLUGINS_PREFIX}demodft8)
2023-01-14 19:22:57 -05:00
set(TARGET_LIB "Qt::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME ${PLUGINSSRV_PREFIX}demodft8srv)
2023-01-14 19:22:57 -05:00
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
if(NOT Qt6_FOUND)
add_library(${TARGET_NAME} ${demodft8_SOURCES})
else()
qt_add_plugin(${TARGET_NAME} CLASS_NAME FT8Plugin ${demodft8_SOURCES})
endif()
if(NOT BUILD_SHARED_LIBS)
set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})
endif()
2023-01-14 19:22:57 -05:00
target_link_libraries(${TARGET_NAME} PRIVATE
2023-01-14 19:22:57 -05:00
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
swagger
2023-01-19 17:51:43 -05:00
ft8
2023-01-14 19:22:57 -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()