1 # Copyright 2019 AT&T Intellectual Property
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 cmake_minimum_required(VERSION 3.5.1)
18 set(CMAKE_CXX_COMPILER "/usr/bin/g++")
19 set(CMAKE_CXX_STANDARD 14)
23 set (HOME_DIR $ENV{HOME})
25 include_directories("src")
26 include_directories("src/ASN1/lib")
27 include_directories("src/SCTP/")
28 include_directories("src/E2AP")
29 include_directories("src/X2AP")
32 #include_directories("src/ASN1")
33 #include_directories("src/ASN1/asn")
34 #include_directories("src/ASN1/generated")
36 # "src/ASN1/lib/asn_x2ap.cpp"
39 link_directories("build")
41 #-----------------------------------------------
42 file(GLOB E2AGENT_SOURCES
48 add_executable(e2agent ${E2AGENT_SOURCES})
51 target_link_libraries(e2agent ASN1_API)
53 #-----------------------------------------------
54 file(GLOB E2TERM_SOURCES
55 "src/e2termination_test.cpp"
60 add_executable(e2term ${E2TERM_SOURCES})
61 target_link_libraries(e2term ASN1_API)
63 #-----------------------------------------------
64 file(GLOB X2TERM_SOURCES
65 "src/x2termination_test.cpp"
70 add_executable(x2term ${X2TERM_SOURCES})
71 target_link_libraries(x2term ASN1_API)