Add initial codes
[it/test.git] / simulators / e2sim / CMakeLists.txt
1 # Copyright 2019 AT&T Intellectual Property
2 # Copyright 2019 Nokia
3 #
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
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 cmake_minimum_required(VERSION 3.5.1)
18 set(CMAKE_CXX_COMPILER "/usr/bin/g++")
19 set(CMAKE_CXX_STANDARD 14)
20
21 project(e2sim)
22
23 set (HOME_DIR     $ENV{HOME})
24
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")
30
31 #for ASN1_API
32 #include_directories("src/ASN1")
33 #include_directories("src/ASN1/asn")
34 #include_directories("src/ASN1/generated")
35 #add_library(ASN1_API
36 #  "src/ASN1/lib/asn_x2ap.cpp"
37 #)
38
39 link_directories("build")
40
41 #-----------------------------------------------
42 file(GLOB E2AGENT_SOURCES
43       "src/e2agent.cpp"
44       "src/e2sim_defs.cpp"
45       "src/SCTP/*.cpp"
46       "src/E2AP/*.cpp"
47       )
48 add_executable(e2agent ${E2AGENT_SOURCES})
49
50 #for ASN1_API
51 target_link_libraries(e2agent ASN1_API)
52
53 #-----------------------------------------------
54 file(GLOB E2TERM_SOURCES
55       "src/e2termination_test.cpp"
56       "src/e2sim_defs.cpp"
57       "src/SCTP/*.cpp"
58       "src/E2AP/*.cpp"
59       )
60 add_executable(e2term ${E2TERM_SOURCES})
61 target_link_libraries(e2term ASN1_API)
62
63 #-----------------------------------------------
64 file(GLOB X2TERM_SOURCES
65       "src/x2termination_test.cpp"
66       "src/e2sim_defs.cpp"
67       "src/SCTP/*.cpp"
68       "src/X2AP/*.cpp"
69       )
70 add_executable(x2term ${X2TERM_SOURCES})
71 target_link_libraries(x2term ASN1_API)