1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/plugins/channeltx/moddatv/CMakeLists.txt
2021-03-18 17:17:58 +00:00

76 lines
1.5 KiB
CMake

project(moddatv)
set(moddatv_SOURCES
datvmod.cpp
datvmodbaseband.cpp
datvmodreport.cpp
datvmodsource.cpp
datvmodplugin.cpp
datvmodsettings.cpp
datvmodwebapiadapter.cpp
dvb-s/dvb-s.cpp
)
set(moddatv_HEADERS
datvmod.h
datvmodbaseband.h
datvmodreport.h
datvmodsource.h
datvmodplugin.h
datvmodsettings.h
datvmodwebapiadapter.h
dvb-s/dvb-s.h
)
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${Boost_INCLUDE_DIRS}
${AVCODEC_INCLUDE_DIRS}
${AVFORMAT_INCLUDE_DIRS}
${AVUTIL_INCLUDE_DIRS}
${SWSCALE_INCLUDE_DIRS}
${SWRESAMPLE_INCLUDE_DIRS}
)
if(NOT SERVER_MODE)
set(moddatv_SOURCES
${moddatv_SOURCES}
datvmodgui.cpp
datvmodgui.ui
)
set(moddatv_HEADERS
${moddatv_HEADERS}
datvmodgui.h
)
set(TARGET_NAME moddatv)
set(TARGET_LIB "Qt5::Widgets")
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME moddatvsrv)
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
add_library(${TARGET_NAME} SHARED
${moddatv_SOURCES}
)
target_link_libraries(${TARGET_NAME}
Boost::disable_autolinking
Qt5::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
swagger
${AVCODEC_LIBRARIES}
${AVFORMAT_LIBRARIES}
${AVUTIL_LIBRARIES}
${SWSCALE_LIBRARIES}
${SWRESAMPLE_LIBRARIES}
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})