forked from srsran/srsRAN_4G
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
110 lines (84 loc) · 3.82 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
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# Copyright 2013-2022 Software Radio Systems Limited
#
# This file is part of srsRAN
#
# srsRAN is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# srsRAN 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 Affero General Public License for more details.
#
# A copy of the GNU Affero General Public License can be found in
# the LICENSE file in the top-level directory of this distribution
# and at http://www.gnu.org/licenses/.
#
#################################################################
# Applications
#################################################################
add_executable(synch_file synch_file.c)
target_link_libraries(synch_file srsran_phy)
#################################################################
# These can be compiled without UHD or graphics support
#################################################################
if(RF_FOUND)
add_executable(pdsch_ue pdsch_ue.c)
target_link_libraries(pdsch_ue srsran_phy srsran_common srsran_rf pthread)
add_executable(pdsch_enodeb pdsch_enodeb.c)
target_link_libraries(pdsch_enodeb srsran_phy srsran_common srsran_rf pthread)
add_executable(npdsch_enodeb npdsch_enodeb.c)
target_link_libraries(npdsch_enodeb srsran_phy srsran_rf pthread)
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
target_link_libraries(npdsch_ue srsran_common srsran_phy srsran_rf pthread rrc_asn1)
else(RF_FOUND)
add_definitions(-DDISABLE_RF)
add_executable(pdsch_ue pdsch_ue.c)
target_link_libraries(pdsch_ue srsran_common srsran_phy pthread)
add_executable(pdsch_enodeb pdsch_enodeb.c)
target_link_libraries(pdsch_enodeb srsran_common srsran_phy pthread)
add_executable(npdsch_enodeb npdsch_enodeb.c)
target_link_libraries(npdsch_enodeb srsran_phy pthread)
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
target_link_libraries(npdsch_ue srsran_common srsran_phy pthread rrc_asn1)
endif(RF_FOUND)
if(SRSGUI_FOUND)
include_directories(${SRSGUI_INCLUDE_DIRS})
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
target_link_libraries(npdsch_ue ${SRSGUI_LIBRARIES})
add_definitions(-DENABLE_GUI)
endif(SRSGUI_FOUND)
if (ZEROMQ_FOUND)
add_executable(zmq_remote_rx zmq_remote_rx.c)
target_link_libraries(zmq_remote_rx srsran_phy srsran_rf ${ZEROMQ_LIBRARIES})
endif (ZEROMQ_FOUND)
#################################################################
# These examples need the UHD driver
#################################################################
if(RF_FOUND)
add_executable(cell_search cell_search.c)
target_link_libraries(cell_search srsran_phy srsran_common srsran_rf)
add_executable(usrp_capture usrp_capture.c)
target_link_libraries(usrp_capture srsran_phy srsran_rf)
add_executable(usrp_capture_sync usrp_capture_sync.c)
target_link_libraries(usrp_capture_sync srsran_phy srsran_rf)
add_executable(usrp_capture_sync_nbiot usrp_capture_sync_nbiot.c)
target_link_libraries(usrp_capture_sync_nbiot srsran_rf srsran_phy)
add_executable(cell_search_nbiot cell_search_nbiot.c)
target_link_libraries(cell_search_nbiot srsran_rf srsran_phy)
add_executable(usrp_txrx usrp_txrx.c)
target_link_libraries(usrp_txrx srsran_phy srsran_rf)
add_executable(pssch_ue pssch_ue.c)
target_link_libraries(pssch_ue srsran_phy srsran_common srsran_rf pthread)
if(SRSGUI_FOUND)
target_link_libraries(pssch_ue ${SRSGUI_LIBRARIES})
endif(SRSGUI_FOUND)
message(STATUS " examples will be installed.")
else(RF_FOUND)
message(STATUS " examples will NOT BE INSTALLED.")
endif(RF_FOUND)
# Add eNB/UE IQ test
add_subdirectory(test)