2019-02-24 23:13:57 +00:00
|
|
|
project(demodfreedv)
|
|
|
|
|
|
|
|
set(freedv_SOURCES
|
|
|
|
freedvdemod.cpp
|
|
|
|
freedvdemodsettings.cpp
|
|
|
|
freedvplugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(freedv_HEADERS
|
|
|
|
freedvdemod.h
|
|
|
|
freedvdemodsettings.h
|
|
|
|
freedvplugin.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-06-15 08:58:55 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
|
|
${CODEC2_INCLUDE_DIR}
|
2019-02-24 23:13:57 +00:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
if(NOT SERVER_MODE)
|
|
|
|
set(freedv_SOURCES
|
|
|
|
${freedv_SOURCES}
|
|
|
|
freedvdemodgui.cpp
|
2019-06-15 08:58:55 +00:00
|
|
|
freedvdemodgui.ui
|
2019-05-01 09:54:58 +00:00
|
|
|
)
|
|
|
|
set(freedv_HEADERS
|
|
|
|
${freedv_HEADERS}
|
|
|
|
freedvdemodgui.h
|
|
|
|
)
|
|
|
|
set(TARGET_NAME demodfreedv)
|
|
|
|
set(TARGET_LIB "Qt5::Widgets")
|
|
|
|
set(TARGET_LIB_GUI "sdrgui")
|
2019-05-01 13:17:27 +00:00
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
2019-05-01 09:54:58 +00:00
|
|
|
else()
|
|
|
|
set(TARGET_NAME demodfreedvsrv)
|
|
|
|
set(TARGET_LIB "")
|
|
|
|
set(TARGET_LIB_GUI "")
|
2019-05-01 13:17:27 +00:00
|
|
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
2019-05-01 09:54:58 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(${TARGET_NAME} SHARED
|
2019-02-24 23:13:57 +00:00
|
|
|
${freedv_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-23 14:01:06 +00:00
|
|
|
if(ENABLE_EXTERNAL_LIBRARIES)
|
|
|
|
add_dependencies(${TARGET_NAME} codec2)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
target_link_libraries(${TARGET_NAME}
|
2019-06-15 08:58:55 +00:00
|
|
|
Qt5::Core
|
|
|
|
${TARGET_LIB}
|
2019-02-24 23:13:57 +00:00
|
|
|
sdrbase
|
2019-05-01 09:54:58 +00:00
|
|
|
${TARGET_LIB_GUI}
|
2019-06-15 08:58:55 +00:00
|
|
|
swagger
|
|
|
|
${CODEC2_LIBRARIES}
|
2019-02-24 23:13:57 +00:00
|
|
|
)
|
|
|
|
|
2019-05-01 13:17:27 +00:00
|
|
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|