forked from aligungr/UERANSIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (37 loc) · 1.46 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
cmake_minimum_required(VERSION 3.17)
project(ueransim)
set(CMAKE_CXX_STANDARD 17)
include_directories(src)
#################### SUB DIRECTORIES ####################
add_subdirectory(src/ext)
add_subdirectory(src/utils)
add_subdirectory(src/asn/asn1c)
add_subdirectory(src/asn/rrc)
add_subdirectory(src/asn/ngap)
add_subdirectory(src/lib)
add_subdirectory(src/gnb)
add_subdirectory(src/ue)
#################### GNB EXECUTABLE ####################
add_executable(nr-gnb src/gnb.cpp)
target_link_libraries(nr-gnb pthread)
target_compile_options(nr-gnb PRIVATE -Wall -Wextra -pedantic)
target_link_libraries(nr-gnb asn-rrc)
target_link_libraries(nr-gnb asn-ngap)
target_link_libraries(nr-gnb common-lib)
target_link_libraries(nr-gnb gnb)
#################### UE EXECUTABLE ####################
add_executable(nr-ue src/ue.cpp)
target_link_libraries(nr-ue pthread)
target_compile_options(nr-ue PRIVATE -Wall -Wextra -pedantic)
target_link_libraries(nr-ue common-lib)
target_link_libraries(nr-ue ue)
###################### IF BINDER ######################
add_library(devbnd SHARED src/binder.cpp)
target_compile_options(devbnd PRIVATE -D_GNU_SOURCE -Wall -Wextra)
target_link_options(devbnd PRIVATE -nostartfiles)
target_link_libraries(devbnd dl)
#################### CLI EXECUTABLE ####################
add_executable(nr-cli src/cli.cpp)
target_link_libraries(nr-cli pthread)
target_compile_options(nr-cli PRIVATE -Wall -Wextra -pedantic)
target_link_libraries(nr-cli common-lib)