2016-10-25 18:57:46 -04:00
|
|
|
project(dsdcc)
|
|
|
|
|
2018-12-01 18:04:41 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2016-10-25 18:57:46 -04:00
|
|
|
set(dsdcc_SOURCES
|
|
|
|
${LIBDSDCCSRC}/descramble.cpp
|
|
|
|
${LIBDSDCCSRC}/dmr.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_decoder.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_filters.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_logger.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_mbe.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_opts.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_state.cpp
|
|
|
|
${LIBDSDCCSRC}/dsd_symbol.cpp
|
|
|
|
${LIBDSDCCSRC}/dstar.cpp
|
|
|
|
${LIBDSDCCSRC}/ysf.cpp
|
|
|
|
${LIBDSDCCSRC}/dpmr.cpp
|
2018-06-22 17:46:37 -04:00
|
|
|
${LIBDSDCCSRC}/nxdn.cpp
|
|
|
|
${LIBDSDCCSRC}/nxdnconvolution.cpp
|
|
|
|
${LIBDSDCCSRC}/nxdncrc.cpp
|
|
|
|
${LIBDSDCCSRC}/nxdnmessage.cpp
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCCSRC}/p25p1_heuristics.cpp
|
|
|
|
${LIBDSDCCSRC}/fec.cpp
|
|
|
|
${LIBDSDCCSRC}/crc.cpp
|
|
|
|
${LIBDSDCCSRC}/viterbi.cpp
|
|
|
|
${LIBDSDCCSRC}/viterbi3.cpp
|
|
|
|
${LIBDSDCCSRC}/viterbi5.cpp
|
|
|
|
${LIBDSDCCSRC}/pn.cpp
|
|
|
|
${LIBDSDCCSRC}/mbefec.cpp
|
|
|
|
${LIBDSDCCSRC}/locator.cpp
|
2017-05-08 19:34:20 -04:00
|
|
|
${LIBDSDCCSRC}/phaselock.cpp
|
2019-02-19 19:40:34 -05:00
|
|
|
${LIBDSDCCSRC}/timeutil.cpp
|
2016-10-25 18:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dsdcc_HEADERS
|
|
|
|
${LIBDSDCCSRC}/descramble.h
|
|
|
|
${LIBDSDCCSRC}/dmr.h
|
|
|
|
${LIBDSDCCSRC}/dsd_decoder.h
|
|
|
|
${LIBDSDCCSRC}/dsd_filters.h
|
|
|
|
${LIBDSDCCSRC}/dsd_logger.h
|
|
|
|
${LIBDSDCCSRC}/dsd_mbe.h
|
2017-01-16 18:26:14 -05:00
|
|
|
${LIBDSDCCSRC}/dsd_mbelib.h
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCCSRC}/dsd_opts.h
|
|
|
|
${LIBDSDCCSRC}/dsd_state.h
|
|
|
|
${LIBDSDCCSRC}/dsd_symbol.h
|
|
|
|
${LIBDSDCCSRC}/dstar.h
|
|
|
|
${LIBDSDCCSRC}/ysf.h
|
|
|
|
${LIBDSDCCSRC}/dpmr.h
|
2018-06-22 17:46:37 -04:00
|
|
|
${LIBDSDCCSRC}/nxdn.h
|
|
|
|
${LIBDSDCCSRC}/nxdnconvolution.h
|
|
|
|
${LIBDSDCCSRC}/nxdncrc.h
|
|
|
|
${LIBDSDCCSRC}/nxdnmessage.h
|
2016-10-25 18:57:46 -04:00
|
|
|
${LIBDSDCCSRC}/p25p1_heuristics.h
|
|
|
|
${LIBDSDCCSRC}/runningmaxmin.h
|
|
|
|
${LIBDSDCCSRC}/doublebuffer.h
|
|
|
|
${LIBDSDCCSRC}/fec.h
|
|
|
|
${LIBDSDCCSRC}/crc.h
|
|
|
|
${LIBDSDCCSRC}/viterbi.h
|
|
|
|
${LIBDSDCCSRC}/viterbi3.h
|
|
|
|
${LIBDSDCCSRC}/viterbi5.h
|
|
|
|
${LIBDSDCCSRC}/pn.h
|
|
|
|
${LIBDSDCCSRC}/mbefec.h
|
2017-05-08 19:34:20 -04:00
|
|
|
${LIBDSDCCSRC}/locator.h
|
|
|
|
${LIBDSDCCSRC}/phaselock.h
|
2019-02-19 19:40:34 -05:00
|
|
|
${LIBDSDCCSRC}/timeutil.h
|
2016-10-25 18:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DDSD_USE_MBELIB)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBDSDCCSRC}
|
|
|
|
${LIBMBELIBSRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(dsdcc SHARED
|
|
|
|
${dsdcc_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(dsdcc
|
|
|
|
mbelib
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS dsdcc DESTINATION ${INSTALL_LIB_DIR})
|