Enhanced SIM for E2AP v1 for TS UC
[sim/e2-interface.git] / e2sim / e2apv1sim / test / Misc / CMakeLists.txt
1 #/*****************************************************************************
2 #                                                                            *
3 # Copyright 2019 AT&T Intellectual Property                                  *
4 # Copyright 2019 Nokia                                                       *
5 #                                                                            *
6 # Licensed under the Apache License, Version 2.0 (the "License");            *
7 # you may not use this file except in compliance with the License.           *
8 # You may obtain a copy of the License at                                    *
9 #                                                                            *
10 #      http://www.apache.org/licenses/LICENSE-2.0                            *
11 #                                                                            *
12 # Unless required by applicable law or agreed to in writing, software        *
13 # distributed under the License is distributed on an "AS IS" BASIS,          *
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *
15 # See the License for the specific language governing permissions and        *
16 # limitations under the License.                                             *
17 #                                                                            *
18 #******************************************************************************/
19
20 cmake_minimum_required(VERSION 3.5.1)
21 set(CMAKE_CXX_COMPILER "/usr/bin/g++")
22 set(CMAKE_CXX_STANDARD 14)
23
24 add_definitions("-D ASN_DISABLE_OER_SUPPORT")
25
26 project(e2sim)
27
28 set (HOME_DIR $ENV{HOME})
29 #set (E2SIM_ROOT ../../../)
30
31 include_directories("src")
32 include_directories("src/SCTP/")
33 include_directories("src/E2AP")
34 include_directories("src/E2AP/E2SM")
35 include_directories("ASN1c")
36
37 find_library( SCTP_LIBRARY sctp )  #needed for sctp_sendmsg
38
39 #----------------------------------------------
40 file(GLOB E2AGENT_SOURCES
41       "src/e2agent.cpp"
42       "src/e2sim_defs.cpp"
43       "src/SCTP/*.cpp"
44       "src/E2AP/*.c"
45       "src/E2AP/*.cpp"
46       "ASN1c/*.c"
47       )
48 add_executable(e2agent ${E2AGENT_SOURCES})
49 target_link_libraries( e2agent ${SCTP_LIBRARY} )
50
51 #----------------------------------------------
52 file(GLOB RICSIM_SOURCES
53       "src/ric_sim.cpp"
54       "src/e2sim_defs.cpp"
55       "src/SCTP/*.cpp"
56       "src/E2AP/*.c"
57       "src/E2AP/*.cpp"
58       "ASN1c/*.c"
59       )
60 add_executable(ric_sim ${RICSIM_SOURCES})
61 target_link_libraries( ric_sim ${SCTP_LIBRARY} )
62
63
64 #----------------------------------------------
65 file(GLOB X2TERM_SOURCES
66       "src/x2term.cpp"
67       "src/e2sim_defs.cpp"
68       "src/SCTP/*.cpp"
69       "src/E2AP/*.c"
70       "src/E2AP/*.cpp"
71       "ASN1c/*.c"
72       )
73 add_executable(x2term ${X2TERM_SOURCES})
74 target_link_libraries( x2term ${SCTP_LIBRARY} )
75
76
77 #-----------------------------------------------
78 file(GLOB TEST
79       "src/test_asn1c.cpp"
80       "src/e2sim_defs.cpp"
81 #      "src/SCTP/*.cpp"
82       "ASN1c/*.c"
83       "src/E2AP/*.c"
84       "src/E2AP/E2SM/*.c"
85       )
86 add_executable(test_asn1c ${TEST})