forked from gnuradio/gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
97 lines (84 loc) · 2.36 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Copyright 2012-2014,2019 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
########################################################################
# Setup library
########################################################################
add_library(gnuradio-analog
cpm.cc
squelch_base_cc_impl.cc
squelch_base_ff_impl.cc
agc_cc_impl.cc
agc_ff_impl.cc
agc2_cc_impl.cc
agc2_ff_impl.cc
agc3_cc_impl.cc
cpfsk_bc_impl.cc
ctcss_squelch_ff_impl.cc
dpll_bb_impl.cc
fastnoise_source_impl.cc
feedforward_agc_cc_impl.cc
fmdet_cf_impl.cc
frequency_modulator_fc_impl.cc
noise_source_impl.cc
phase_modulator_fc_impl.cc
pll_carriertracking_cc_impl.cc
pll_freqdet_cf_impl.cc
pll_refout_cc_impl.cc
probe_avg_mag_sqrd_c_impl.cc
probe_avg_mag_sqrd_cf_impl.cc
probe_avg_mag_sqrd_f_impl.cc
pwr_squelch_cc_impl.cc
pwr_squelch_ff_impl.cc
quadrature_demod_cf_impl.cc
rail_ff_impl.cc
random_uniform_source_impl.cc
sig_source_impl.cc
simple_squelch_cc_impl.cc
)
if(ENABLE_COMMON_PCH)
set(PRIVATE_LIBS common-precompiled-headers)
endif()
target_link_libraries(gnuradio-analog PUBLIC
gnuradio-runtime
gnuradio-blocks
gnuradio-filter
PRIVATE
${PRIVATE_LIBS}
)
target_include_directories(gnuradio-analog
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)
#Add Windows DLL resource file if using MSVC
IF(MSVC)
include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-analog.rc.in
${CMAKE_CURRENT_BINARY_DIR}/gnuradio-analog.rc
@ONLY)
target_sources(gnuradio-analog PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/gnuradio-analog.rc
)
ENDIF(MSVC)
if(BUILD_SHARED_LIBS)
GR_LIBRARY_FOO(gnuradio-analog)
endif()
########################################################################
# QA C++ Code for gr-analog
########################################################################
if(ENABLE_TESTING)
include(GrTest)
list(APPEND test_gr_analog_sources
)
list(APPEND GR_TEST_TARGET_DEPS gnuradio-analog)
foreach(qa_file ${test_gr_analog_sources})
GR_ADD_CPP_TEST("analog_${qa_file}"
${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
)
endforeach(qa_file)
endif(ENABLE_TESTING)