2016-01-07 20:24:51 +01:00
|
|
|
# Copyright 2011,2012 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This file is part of GNU Radio
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2017-01-22 18:33:36 +01:00
|
|
|
include_directories(
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
${VOLK_INCLUDE_DIRS}
|
2017-02-03 00:24:10 +01:00
|
|
|
${VORBIS_INCLUDE_DIR}
|
|
|
|
${OGG_INCLUDE_DIR}
|
2017-04-08 20:50:18 +02:00
|
|
|
${PNG_INCLUDE_DIR}
|
2017-01-22 18:33:36 +01:00
|
|
|
)
|
|
|
|
|
2016-01-07 20:24:51 +01:00
|
|
|
link_directories(${Boost_LIBRARY_DIRS})
|
2016-10-12 01:45:21 +02:00
|
|
|
|
|
|
|
list(APPEND satnogs_debug_sources
|
|
|
|
morse_debug_source_impl.cc
|
|
|
|
debug_msg_source_impl.cc
|
|
|
|
debug_msg_source_raw_impl.cc
|
2016-10-21 22:11:29 +02:00
|
|
|
leo_channel_impl.cc
|
2016-10-12 01:45:21 +02:00
|
|
|
)
|
2016-01-07 20:24:51 +01:00
|
|
|
list(APPEND satnogs_sources
|
2016-01-19 18:35:37 +01:00
|
|
|
cw_matched_filter_ff_impl.cc
|
2016-01-21 20:33:08 +01:00
|
|
|
morse_tree.cc
|
2016-01-22 21:10:06 +01:00
|
|
|
morse_decoder_impl.cc
|
2016-05-13 14:57:33 +02:00
|
|
|
multi_format_msg_sink_impl.cc
|
2017-02-03 00:24:10 +01:00
|
|
|
ogg_encoder_impl.cc
|
2016-02-09 17:59:40 +01:00
|
|
|
cw_to_symbol_impl.cc
|
2016-03-02 18:59:18 +01:00
|
|
|
sine_matched_filter_ff_impl.cc
|
2016-03-08 22:19:17 +01:00
|
|
|
udp_msg_source_impl.cc
|
2016-04-01 18:44:40 +02:00
|
|
|
tcp_rigctl_msg_source_impl.cc
|
2016-03-29 21:58:06 +02:00
|
|
|
doppler_correction_cc_impl.cc
|
|
|
|
frame_encoder_impl.cc
|
|
|
|
doppler_fit.cc
|
2016-04-02 22:02:38 +02:00
|
|
|
freq_drift.cc
|
2016-04-06 20:27:46 +02:00
|
|
|
upsat_fsk_frame_acquisition_impl.cc
|
2016-04-11 20:26:57 +02:00
|
|
|
upsat_fsk_frame_encoder_impl.cc
|
2016-04-29 01:21:00 +02:00
|
|
|
whitening.cc
|
2016-05-11 20:17:58 +02:00
|
|
|
udp_msg_sink_impl.cc
|
2016-06-02 16:06:40 +02:00
|
|
|
coarse_doppler_correction_cc_impl.cc
|
2016-07-01 23:18:44 +02:00
|
|
|
ax25_encoder_mb_impl.cc
|
2016-07-27 16:38:49 +02:00
|
|
|
ax25_decoder_bm_impl.cc
|
2017-01-22 18:33:36 +01:00
|
|
|
qb50_deframer_impl.cc
|
2017-04-01 15:21:15 +02:00
|
|
|
waterfall_sink_impl.cc
|
2017-04-08 20:50:18 +02:00
|
|
|
ogg_source_impl.cc
|
2017-07-30 08:51:06 +02:00
|
|
|
noaa_apt_sink_impl.cc
|
2017-08-07 16:05:35 +02:00
|
|
|
frame_file_sink_impl.cc
|
|
|
|
iq_sink_impl.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()
|
|
|
|
|
2016-01-07 20:24:51 +01:00
|
|
|
set(satnogs_sources "${satnogs_sources}" PARENT_SCOPE)
|
|
|
|
if(NOT satnogs_sources)
|
|
|
|
MESSAGE(STATUS "No C++ sources... skipping lib/")
|
|
|
|
return()
|
|
|
|
endif(NOT satnogs_sources)
|
|
|
|
|
|
|
|
add_library(gnuradio-satnogs SHARED ${satnogs_sources})
|
2016-01-22 21:10:06 +01:00
|
|
|
target_link_libraries(gnuradio-satnogs
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${GNURADIO_ALL_LIBRARIES}
|
2016-10-21 22:11:29 +02:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2017-01-22 18:33:36 +01:00
|
|
|
${NOVA_LIBRARIES}
|
|
|
|
${VOLK_LIBRARIES}
|
2017-02-03 00:24:10 +01:00
|
|
|
${OGGVORBIS_LIBRARIES}
|
2017-04-08 20:50:18 +02:00
|
|
|
${PNG_LIBRARIES}
|
2017-01-22 18:33:36 +01:00
|
|
|
)
|
2016-01-22 21:10:06 +01:00
|
|
|
|
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)
|
|
|
|
GR_LIBRARY_FOO(gnuradio-satnogs RUNTIME_COMPONENT "satnogs_runtime" DEVEL_COMPONENT "satnogs_devel")
|
2016-01-07 20:24:51 +01:00
|
|
|
|
|
|
|
########################################################################
|
2017-03-23 02:22:08 +01:00
|
|
|
# Print summary
|
2016-01-07 20:24:51 +01:00
|
|
|
########################################################################
|
2017-03-23 02:22:08 +01:00
|
|
|
message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
|
|
|
|
message(STATUS "Building for version: ${VERSION} / ${LIBVER}")
|