1 #/*****************************************************************************
3 # Copyright 2019 AT&T Intellectual Property *
4 # Copyright 2019 Nokia *
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 *
10 # http://www.apache.org/licenses/LICENSE-2.0 *
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. *
18 #******************************************************************************/
20 cmake_minimum_required(VERSION 3.5.1)
21 set(CMAKE_CXX_COMPILER "/usr/bin/g++")
22 set(CMAKE_CXX_STANDARD 14)
24 add_definitions("-D ASN_DISABLE_OER_SUPPORT")
26 set (E2SIM_ROOT ../../)
28 include_directories("${E2SIM_ROOT}/src")
29 include_directories("${E2SIM_ROOT}/src/DEF")
30 include_directories("${E2SIM_ROOT}/src/SCTP/")
31 include_directories("${E2SIM_ROOT}/src/E2AP")
32 include_directories("${E2SIM_ROOT}/src/E2AP/E2SM")
33 include_directories("${E2SIM_ROOT}/ASN1c")
35 find_library( SCTP_STD_LIB sctp ) #needed for sctp_sendmsg
37 #----------------------------------------------
39 "${E2SIM_ROOT}/test/WLG/ric_wlg.cpp"
40 "${E2SIM_ROOT}/src/DEF/*.cpp"
41 "${E2SIM_ROOT}/src/SCTP/*.cpp"
42 "${E2SIM_ROOT}/src/E2AP/*.c"
43 "${E2SIM_ROOT}/src/E2AP/*.cpp"
44 "${E2SIM_ROOT}/ASN1c/*.c"
46 add_executable(ric_wlg ${WLG_SOURCES})
47 target_link_libraries( ric_wlg ${SCTP_STD_LIB} )
49 #----------------------------------------------
50 file(GLOB RICPERF_SOURCES
51 "${E2SIM_ROOT}/test/WLG/ric_perf.cpp"
52 "${E2SIM_ROOT}/src/DEF/*.cpp"
53 "${E2SIM_ROOT}/src/SCTP/*.cpp"
54 "${E2SIM_ROOT}/src/E2AP/*.c"
55 "${E2SIM_ROOT}/src/E2AP/*.cpp"
56 "${E2SIM_ROOT}/ASN1c/*.c"
58 add_executable(ric_perf ${RICPERF_SOURCES})
59 target_link_libraries( ric_perf ${SCTP_STD_LIB} )