Add client cert to support mTLS
[it/test.git] / simulators / workload_generators / e2e_testing / 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 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")
24
25
26 project(wg)
27
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")
34
35 #----------------------------------------------
36 file(GLOB WG_SOURCES
37       "src/wg_concur.cpp"
38       "src/wg_defs.cpp"
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"
44       )
45 add_executable(wg_concur ${WG_SOURCES})
46 #add_executable(wg ${WG_SOURCES})
47 target_link_libraries(wg_concur pthread )    
48
49 #----------------------------------------------
50 file(GLOB WG_SOURCES
51       "src/wg_serial.cpp"
52       "src/wg_defs.cpp"
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"
58       )
59 add_executable(wg_serial ${WG_SOURCES})