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)
20 set(E2SIM_HOME $ENV{E2SIM_DIR})
21 set(CMAKE_CXX_FLAGS " -lpthread")
22 message(STATUS "E2SIM_HOME: ${E2SIM_HOME}")
23 add_definitions("-D ASN_DISABLE_OER_SUPPORT")
28 include_directories("src")
29 include_directories("${E2SIM_HOME}/src")
30 include_directories("${E2SIM_HOME}/src/SCTP/")
31 include_directories("${E2SIM_HOME}/src/E2AP")
32 include_directories("${E2SIM_HOME}/src/E2AP/E2SM")
33 include_directories("${E2SIM_HOME}/ASN1c")
35 #----------------------------------------------
39 "${E2SIM_HOME}/src/e2sim_defs.cpp"
40 "${E2SIM_HOME}/src/SCTP/*.cpp"
41 "${E2SIM_HOME}/src/E2AP/*.c"
42 "${E2SIM_HOME}/src/E2AP/*.cpp"
43 "${E2SIM_HOME}/ASN1c/*.c"
45 add_executable(wg_concur ${WG_SOURCES})
46 #add_executable(wg ${WG_SOURCES})
47 target_link_libraries(wg_concur pthread )
49 #----------------------------------------------
53 "${E2SIM_HOME}/src/e2sim_defs.cpp"
54 "${E2SIM_HOME}/src/SCTP/*.cpp"
55 "${E2SIM_HOME}/src/E2AP/*.c"
56 "${E2SIM_HOME}/src/E2AP/*.cpp"
57 "${E2SIM_HOME}/ASN1c/*.c"
59 add_executable(wg_serial ${WG_SOURCES})