2019-12-02 20:53:26 +01:00
|
|
|
# Copyright 2011,2012,2016,2018 Free Software Foundation, Inc.
|
2016-01-07 20:24:51 +01:00
|
|
|
#
|
2019-12-02 20:53:26 +01:00
|
|
|
# This file was generated by gr_modtool, a tool from the GNU Radio framework
|
|
|
|
# This file is a part of gr-satnogs
|
2016-01-07 20:24:51 +01:00
|
|
|
#
|
|
|
|
# GNU Radio is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# GNU Radio is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with GNU Radio; see the file COPYING. If not, write to
|
|
|
|
# the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
# Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Setup library
|
|
|
|
########################################################################
|
|
|
|
include(GrPlatform) #define LIB_SUFFIX
|
|
|
|
|
2019-12-10 20:54:06 +01:00
|
|
|
add_subdirectory(libfec)
|
|
|
|
|
2016-10-12 01:45:21 +02:00
|
|
|
list(APPEND satnogs_debug_sources
|
2017-08-29 01:05:43 +02:00
|
|
|
morse_debug_source_impl.cc
|
|
|
|
debug_msg_source_impl.cc
|
|
|
|
debug_msg_source_raw_impl.cc
|
|
|
|
cw_encoder_impl.cc
|
2016-10-12 01:45:21 +02:00
|
|
|
)
|
2016-01-07 20:24:51 +01:00
|
|
|
list(APPEND satnogs_sources
|
2019-09-01 22:32:59 +02:00
|
|
|
amsat_duv_decoder.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
ax100_decoder.cc
|
|
|
|
ax25_decoder.cc
|
|
|
|
ax25_encoder_mb_impl.cc
|
|
|
|
coarse_doppler_correction_cc_impl.cc
|
|
|
|
convolutional_deinterleaver.cc
|
|
|
|
crc.cc
|
2016-02-09 17:59:40 +01:00
|
|
|
cw_to_symbol_impl.cc
|
2019-09-01 11:41:27 +02:00
|
|
|
decoder.cc
|
2016-03-29 21:58:06 +02:00
|
|
|
doppler_correction_cc_impl.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
doppler_fit.cc
|
2019-09-01 11:41:27 +02:00
|
|
|
frame_decoder_impl.cc
|
2017-09-06 17:09:31 +02:00
|
|
|
frame_file_sink_impl.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
freq_drift.cc
|
|
|
|
golay24.cc
|
|
|
|
ieee802_15_4_variant_decoder.cc
|
2018-01-13 22:40:06 +01:00
|
|
|
iq_sink_impl.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
json_converter_impl.cc
|
2018-11-29 01:41:36 +01:00
|
|
|
lrpt_decoder_impl.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
lrpt_sync_impl.cc
|
|
|
|
metadata.cc
|
|
|
|
morse_decoder_impl.cc
|
|
|
|
morse_tree.cc
|
|
|
|
multi_format_msg_sink_impl.cc
|
|
|
|
noaa_apt_sink_impl.cc
|
|
|
|
ogg_encoder_impl.cc
|
|
|
|
ogg_source_impl.cc
|
2018-11-30 14:07:47 +01:00
|
|
|
shift_reg.cc
|
2019-12-02 20:53:26 +01:00
|
|
|
tcp_rigctl_msg_source_impl.cc
|
|
|
|
udp_msg_sink_impl.cc
|
|
|
|
udp_msg_source_impl.cc
|
|
|
|
waterfall_sink_impl.cc
|
|
|
|
whitening.cc
|
|
|
|
)
|
2016-01-07 20:24:51 +01:00
|
|
|
|
2016-10-12 01:45:21 +02:00
|
|
|
if(${INCLUDE_DEBUG_BLOCKS})
|
|
|
|
list(APPEND satnogs_sources ${satnogs_debug_sources})
|
|
|
|
endif()
|
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
include(GrPython)
|
|
|
|
|
2016-01-07 20:24:51 +01:00
|
|
|
set(satnogs_sources "${satnogs_sources}" PARENT_SCOPE)
|
|
|
|
if(NOT satnogs_sources)
|
2019-12-02 20:53:26 +01:00
|
|
|
MESSAGE(STATUS "No C++ sources... skipping lib/")
|
|
|
|
return()
|
2016-01-07 20:24:51 +01:00
|
|
|
endif(NOT satnogs_sources)
|
|
|
|
|
|
|
|
add_library(gnuradio-satnogs SHARED ${satnogs_sources})
|
2019-12-10 20:54:06 +01:00
|
|
|
add_dependencies(gnuradio-satnogs gnuradio-satnogs-fec)
|
2018-01-31 18:18:45 +01:00
|
|
|
|
2019-12-10 20:54:06 +01:00
|
|
|
target_link_libraries(gnuradio-satnogs
|
|
|
|
gnuradio-satnogs-fec
|
2019-12-02 20:53:26 +01:00
|
|
|
gnuradio::gnuradio-runtime
|
2019-12-10 20:54:06 +01:00
|
|
|
gnuradio::gnuradio-analog
|
2019-12-02 20:53:26 +01:00
|
|
|
gnuradio::gnuradio-blocks
|
2019-12-10 20:54:06 +01:00
|
|
|
gnuradio::gnuradio-fft
|
2019-12-02 20:53:26 +01:00
|
|
|
gnuradio::gnuradio-digital
|
2019-12-10 15:25:48 +01:00
|
|
|
gnuradio::gnuradio-pmt
|
2017-01-22 18:33:36 +01:00
|
|
|
${VOLK_LIBRARIES}
|
2017-02-03 00:24:10 +01:00
|
|
|
${OGGVORBIS_LIBRARIES}
|
2017-04-08 20:50:18 +02:00
|
|
|
${PNG_LIBRARIES}
|
2017-12-31 14:44:56 +01:00
|
|
|
${png++_LIBRARIES}
|
2019-09-01 21:30:57 +02:00
|
|
|
${JSONCPP_LIBRARY}
|
2017-01-22 18:33:36 +01:00
|
|
|
)
|
2019-12-10 20:54:06 +01:00
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
target_include_directories(gnuradio-satnogs
|
|
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
2019-12-10 20:54:06 +01:00
|
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/>
|
2019-12-02 20:53:26 +01:00
|
|
|
PUBLIC $<INSTALL_INTERFACE:include>
|
|
|
|
)
|
2016-01-07 20:24:51 +01:00
|
|
|
set_target_properties(gnuradio-satnogs PROPERTIES DEFINE_SYMBOL "gnuradio_satnogs_EXPORTS")
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
set_target_properties(gnuradio-satnogs PROPERTIES
|
|
|
|
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
|
|
|
|
)
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Install built library files
|
|
|
|
########################################################################
|
2017-03-23 02:22:08 +01:00
|
|
|
include(GrMiscUtils)
|
2019-12-02 20:53:26 +01:00
|
|
|
GR_LIBRARY_FOO(gnuradio-satnogs)
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Print summary
|
|
|
|
########################################################################
|
|
|
|
message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
|
|
|
|
message(STATUS "Building for version: ${VERSION} / ${LIBVER}")
|
2016-01-07 20:24:51 +01:00
|
|
|
|
2019-07-19 23:50:12 +02:00
|
|
|
########################################################################
|
|
|
|
# Build and register unit test
|
|
|
|
########################################################################
|
|
|
|
include(GrTest)
|
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
# If your unit tests require special include paths, add them here
|
|
|
|
#include_directories()
|
|
|
|
# List all files that contain Boost.UTF unit tests here
|
2019-07-19 23:50:12 +02:00
|
|
|
list(APPEND test_satnogs_sources
|
2019-12-02 20:53:26 +01:00
|
|
|
qa_golay24.cc
|
2019-07-19 23:50:12 +02:00
|
|
|
)
|
2019-12-10 20:54:06 +01:00
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
# Anything we need to link to for the unit tests go here
|
2019-12-03 12:47:45 +01:00
|
|
|
list(APPEND GR_TEST_TARGET_DEPS gnuradio-satnogs)
|
2019-07-19 23:50:12 +02:00
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
if(NOT test_satnogs_sources)
|
|
|
|
MESSAGE(STATUS "No C++ unit tests... skipping")
|
|
|
|
return()
|
|
|
|
endif(NOT test_satnogs_sources)
|
2019-07-19 23:50:12 +02:00
|
|
|
|
2019-12-02 20:53:26 +01:00
|
|
|
foreach(qa_file ${test_satnogs_sources})
|
|
|
|
GR_ADD_CPP_TEST("satnogs_${qa_file}"
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
|
|
|
|
)
|
|
|
|
endforeach(qa_file)
|
2019-07-19 23:50:12 +02:00
|
|
|
|