CMakeLists.txt 31.1 KB
Newer Older
gauthier's avatar
gauthier committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
################################################################################
#   OpenAirInterface
#   Copyright(c) 1999 - 2014 Eurecom
#
#   OpenAirInterface is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   OpenAirInterface is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with OpenAirInterface.The full GNU General Public License is
#  included in this distribution in the file called "COPYING". If not,
gauthier's avatar
   
gauthier committed
18
#  see <http:/www.gnu.org/licenses/>.
gauthier's avatar
gauthier committed
19
20
21
22
#
# Contact Information
# OpenAirInterface Admin: openair_admin@eurecom.fr
# OpenAirInterface Tech : openair_tech@eurecom.fr
23
# OpenAirInterface Dev  : openair4g-devel@lists.eurecom.fr
gauthier's avatar
gauthier committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Address      : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE
# Author: Lionel GAUTHIER
###############################################################################
cmake_minimum_required(VERSION 2.8)
set(CMAKE_VERBOSE_MAKEFILE ON)


project(at_nas_ue)


ENABLE_LANGUAGE(C)
#Sends the -std=c99 flag to the gcc compiler
#add_definitions(-std=c99)

ADD_DEFINITIONS(-D_GNU_SOURCE)

set (OPENAIR_DIR     $ENV{OPENAIR_DIR})

if( NOT DEFINED OPENAIR_DIR)
  message(SEND_ERROR "OPENAIR_DIR not set: ${OPENAIR_DIR}")
endif( NOT DEFINED OPENAIR_DIR)

set(OPENAIR1_DIR          ${OPENAIR_DIR}/openair1)
set(OPENAIR2_DIR          ${OPENAIR_DIR}/openair2)
set(OPENAIR3_DIR          ${OPENAIR_DIR}/openair3)
gauthier's avatar
gauthier committed
50
set(OPENAIR3_DIR         ${OPENAIR_DIR}/openair3)
gauthier's avatar
gauthier committed
51
52
53
set(OPENAIR_TARGETS       ${OPENAIR_DIR}/targets)
set(OPENAIR_CMAKE_SCRIPTS ${OPENAIR_DIR}/cmake_targets/tools)
set(OPENAIR_BIN_DIR       ${OPENAIR_DIR}/targets/bin)
gauthier's avatar
gauthier committed
54
set(OPENAIR_NAS_DIR       ${OPENAIR_DIR}/openair3/NAS)
gauthier's avatar
gauthier committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95


set(CMAKE_MODULE_PATH "${OPENAIR_DIR}/cmake_targets/tools/MODULES" "${CMAKE_MODULE_PATH}")

macro(add_option name val helpstr)
  if(DEFINED ${name})
    set(value ${${name}})
  else(DEFINED ${name})
    set(value ${val})
  endif()
  set(${name} ${value} CACHE STRING "${helpstr}")
  add_definitions("-D${name}=${value}")
endmacro(add_option)

macro(add_boolean_option name val helpstr)
  if(DEFINED ${name})
    set(value ${${name}})
  else(DEFINED ${name})
    set(value ${val})
  endif()
  set(${name} ${value} CACHE STRING "${helpstr}")
  set_property(CACHE ${name} PROPERTY TYPE BOOL)
  if (${value})
    add_definitions("-D${name}")
  endif (${value})
endmacro(add_boolean_option)

# compilation flags
# added CMAKER conditional compilation to not bother legacy building system
#############################################
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo MinSizeRel)

#
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2 -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing -rdynamic -funroll-loops -Wno-packed-bitfield-compat -DCMAKER")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -DMALLOC_CHECK_=3")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -ggdb -DMALLOC_CHECK_=3 -O2")


gauthier's avatar
gauthier committed
96
include(FindPkgConfig)
gauthier's avatar
gauthier committed
97
98
99
100
101
102
103

INCLUDE(FindNettle)
IF( NOT NETTLE_FOUND )
  MESSAGE( SEND_ERROR "Nettle is required" )
ENDIF( NOT NETTLE_FOUND )


gauthier's avatar
gauthier committed
104
105
106
107
108
109
110
111
pkg_search_module(OPENSSL openssl REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIRS})


pkg_search_module(CRYPTO libcrypto REQUIRED)
include_directories(${CRYPTO_INCLUDE_DIRS})


gauthier's avatar
gauthier committed
112
113
114
115
116
117
118
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
find_package(Threads REQUIRED)

set (FIRMWARE_VERSION "No svn information")
add_definitions("-DFIRMWARE_VERSION=\"${FIRMWARE_VERSION}\"")

add_boolean_option(LINUX   True  "????")
gauthier's avatar
gauthier committed
119
add_boolean_option(ENB_MODE   True  "????") # to avoid backtrace
gauthier's avatar
gauthier committed
120
121
122
123
124
125
126
127
128
129

##########################
# NAS LAYER OPTIONS
##########################
add_boolean_option(ENABLE_NAS_UE_LOGGING   True  "????")
add_boolean_option(NAS_BUILT_IN_EPC        False "MME NAS layer not present in this executable")
add_boolean_option(NAS_BUILT_IN_UE         False  "UE NAS layer present in this executable")
add_boolean_option(NAS_UE                  True  "NAS UE INSTANCE (<> NAS_MME)")
add_boolean_option(NAS_MME                 False "NAS_UE and NAS_MME are incompatible options")

gauthier's avatar
gauthier committed
130
131
132
133
################################################################################
# SECU LIB
################################################################################
set(secu_cn_SRC
gauthier's avatar
gauthier committed
134
135
136
137
138
139
140
141
  ${OPENAIR3_DIR}/SECU/kdf.c
  ${OPENAIR3_DIR}/SECU/rijndael.c
  ${OPENAIR3_DIR}/SECU/snow3g.c
  ${OPENAIR3_DIR}/SECU/key_nas_deriver.c
  ${OPENAIR3_DIR}/SECU/nas_stream_eea1.c
  ${OPENAIR3_DIR}/SECU/nas_stream_eia1.c
  ${OPENAIR3_DIR}/SECU/nas_stream_eea2.c
  ${OPENAIR3_DIR}/SECU/nas_stream_eia2.c
gauthier's avatar
gauthier committed
142
143
144
145
146
  )
add_library(secu_cn ${secu_cn_SRC})
target_include_directories(secu_cn PRIVATE 
                            ${OPENAIR_DIR}/common/utils/itti
                            ${OPENAIR_DIR}/openair2/COMMON
gauthier's avatar
gauthier committed
147
                            ${OPENAIR3_DIR}/UTILS
gauthier's avatar
gauthier committed
148
)
gauthier's avatar
gauthier committed
149
150
151
152
153

################################################################################
# UTIL LIB
################################################################################
set(util_SRC
gauthier's avatar
   
gauthier committed
154
155
156
157
158
159
160
161
162
163
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/device.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/memory.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/nas_log.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/nas_timer.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/OctetString.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/parser.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/TLVDecoder.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/TLVEncoder.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/socket.c
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/stty.c
gauthier's avatar
gauthier committed
164
165
)
set(util_HDR
gauthier's avatar
   
gauthier committed
166
167
168
169
170
171
172
173
174
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/device.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/memory.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/nas_log.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/nas_timer.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/OctetString.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/parser.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/TLVDecoder.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/TLVEncoder.h
    ${OPENAIR_NAS_DIR}/COMMON/UTIL/socket.h
gauthier's avatar
gauthier committed
175
176
177
)

add_library(util ${util_SRC} ${util_HDR})
gauthier's avatar
   
gauthier committed
178
179
180
target_include_directories(util PRIVATE ${OPENAIR_NAS_DIR}/COMMON/UTIL
                                        ${OPENAIR_NAS_DIR}/COMMON
                                        )
gauthier's avatar
gauthier committed
181
182
183
184
185
186


################################################################################
# api_user LIB
################################################################################
set(api_user_SRC
gauthier's avatar
   
gauthier committed
187
188
189
190
191
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_command.c
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_error.c
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_response.c
    ${OPENAIR_NAS_DIR}/UE/API/USER/user_api.c
    ${OPENAIR_NAS_DIR}/UE/API/USER/user_indication.c
gauthier's avatar
gauthier committed
192
)
gauthier's avatar
gauthier committed
193

gauthier's avatar
gauthier committed
194
set(api_user_HDR
gauthier's avatar
   
gauthier committed
195
196
197
198
199
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_command.h
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_error.h
    ${OPENAIR_NAS_DIR}/UE/API/USER/at_response.h
    ${OPENAIR_NAS_DIR}/UE/API/USER/user_api.h
    ${OPENAIR_NAS_DIR}/UE/API/USER/user_indication.h
gauthier's avatar
gauthier committed
200
201
202
)

add_library(api_user ${api_user_SRC} ${api_user_HDR})
gauthier's avatar
   
gauthier committed
203
204
205
206
target_include_directories(api_user PRIVATE ${OPENAIR_NAS_DIR}/UE/API/USER
                                            ${OPENAIR_NAS_DIR}/UE
                                            ${OPENAIR_NAS_DIR}/COMMON
                                            )
gauthier's avatar
gauthier committed
207

gauthier's avatar
gauthier committed
208
209
210
211
################################################################################
# api_usim LIB
################################################################################
set(api_usim_SRC
gauthier's avatar
   
gauthier committed
212
213
    ${OPENAIR_NAS_DIR}/UE/API/USIM/aka_functions.c
    ${OPENAIR_NAS_DIR}/UE/API/USIM/usim_api.c
gauthier's avatar
gauthier committed
214
215
216
)

set(api_usim_HDR
gauthier's avatar
   
gauthier committed
217
218
    ${OPENAIR_NAS_DIR}/UE/API/USIM/aka_functions.h
    ${OPENAIR_NAS_DIR}/UE/API/USIM/usim_api.h
gauthier's avatar
gauthier committed
219
220
221
222

)

add_library(api_usim ${api_usim_SRC} ${api_usim_HDR})
gauthier's avatar
   
gauthier committed
223
target_include_directories(api_usim PRIVATE ${OPENAIR_NAS_DIR}/UE/API/USIM)
gauthier's avatar
gauthier committed
224

gauthier's avatar
gauthier committed
225
226
227
228
################################################################################
# api_network LIB
################################################################################
set(api_network_SRC
gauthier's avatar
   
gauthier committed
229
230
231
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/as_message.c
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/nas_message.c
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/network_api.c
gauthier's avatar
gauthier committed
232
233
)
set(api_network_HDR
gauthier's avatar
   
gauthier committed
234
235
236
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/as_message.h
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/nas_message.h
    ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK/network_api.h
gauthier's avatar
gauthier committed
237
238
239
)

add_library(api_network ${api_network_SRC} ${api_network_HDR})
gauthier's avatar
   
gauthier committed
240
241
242
target_include_directories(api_network PRIVATE ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK
                                               ${OPENAIR_NAS_DIR}/COMMON
                                               )
gauthier's avatar
gauthier committed
243
244


gauthier's avatar
gauthier committed
245
246
247
248
################################################################################
# emm LIB
################################################################################
set(emm_SRC
gauthier's avatar
   
gauthier committed
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
    ${OPENAIR_NAS_DIR}/UE/EMM/Attach.c
    ${OPENAIR_NAS_DIR}/UE/EMM/Authentication.c
    ${OPENAIR_NAS_DIR}/UE/EMM/Detach.c
    ${OPENAIR_NAS_DIR}/UE/EMM/emm_main.c
    ${OPENAIR_NAS_DIR}/UE/EMM/EmmStatusHdl.c
    ${OPENAIR_NAS_DIR}/UE/EMM/Identification.c
    ${OPENAIR_NAS_DIR}/UE/EMM/IdleMode.c
    ${OPENAIR_NAS_DIR}/UE/EMM/LowerLayer.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SecurityModeControl.c
    ${OPENAIR_NAS_DIR}/UE/EMM/ServiceRequestHdl.c
    ${OPENAIR_NAS_DIR}/UE/EMM/TrackingAreaUpdate.c

    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/emm_msg.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachComplete.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachComplete.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationFailure.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationResponse.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/CsServiceNotification.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DetachAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DetachRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DownlinkNasTransport.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/EmmInformation.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/emm_msg.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/EmmStatus.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ExtendedServiceRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/GutiReallocationCommand.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/GutiReallocationComplete.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/IdentityRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/IdentityResponse.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/SecurityModeCommand.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/SecurityModeComplete.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/SecurityModeReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ServiceReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ServiceRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateComplete.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateReject.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/UplinkNasTransport.c
gauthier's avatar
gauthier committed
295
    
gauthier's avatar
   
gauthier committed
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_as.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredAttachNeeded.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredAttemptingToAttach.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregistered.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredInitiated.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredLimitedService.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredNoCellAvailable.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredNoImsi.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredNormalService.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmDeregisteredPlmnSearch.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_esm.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_fsm.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmNull.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_recv.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_reg.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredAttemptingToUpdate.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegistered.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredImsiDetachInitiated.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredInitiated.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredLimitedService.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredNoCellAvailable.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredNormalService.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredPlmnSearch.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmRegisteredUpdateNeeded.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_sap.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_send.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmServiceRequestInitiated.c
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/EmmTrackingAreaUpdatingInitiated.c
gauthier's avatar
gauthier committed
324
325
326
327
    
)

set(emm_HDR
gauthier's avatar
   
gauthier committed
328
329
330
331
332
    ${OPENAIR_NAS_DIR}/UE/EMM/emmData.h
    ${OPENAIR_NAS_DIR}/UE/EMM/emm_main.h
    ${OPENAIR_NAS_DIR}/UE/EMM/emm_proc.h
    ${OPENAIR_NAS_DIR}/UE/EMM/IdleMode.h
    ${OPENAIR_NAS_DIR}/UE/EMM/LowerLayer.h
gauthier's avatar
gauthier committed
333
    
gauthier's avatar
   
gauthier committed
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachComplete.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachReject.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AttachRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationFailure.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationReject.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/AuthenticationResponse.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/CsServiceNotification.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DetachAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DetachRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/DownlinkNasTransport.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/emm_cause.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/EmmInformation.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/emm_msgDef.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/emm_msg.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/EmmStatus.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ExtendedServiceRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/GutiReallocationCommand.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/GutiReallocationComplete.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/IdentityRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/IdentityResponse.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/NASSecurityModeCommand.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/NASSecurityModeComplete.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/SecurityModeReject.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ServiceReject.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/ServiceRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateComplete.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateReject.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/TrackingAreaUpdateRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG/UplinkNasTransport.h
gauthier's avatar
gauthier committed
366
    
gauthier's avatar
   
gauthier committed
367
368
369
370
371
372
373
374
375
376
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_asDef.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_as.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_esmDef.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_esm.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_fsm.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_recv.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_regDef.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_reg.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_sap.h
    ${OPENAIR_NAS_DIR}/UE/EMM/SAP/emm_send.h
gauthier's avatar
gauthier committed
377
378
379
380
381
382

)

add_library(emm ${emm_SRC} ${emm_HDR})

target_include_directories(emm PRIVATE 
gauthier's avatar
gauthier committed
383
                     ${OPENAIR_DIR}/common/utils/msc 
gauthier's avatar
   
gauthier committed
384
385
386
387
388
389
390
                     ${OPENAIR_DIR}/common/utils
                     ${OPENAIR_DIR}/openair2/COMMON
                     ${OPENAIR_NAS_DIR}/UE/API/USIM 
                     ${OPENAIR_NAS_DIR}/UE/EMM
                     ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG
                     ${OPENAIR_NAS_DIR}/UE/EMM/SAP
                     ${OPENAIR_NAS_DIR}/COMMON/IES
gauthier's avatar
gauthier committed
391
392
393
394
395
396
397
)


################################################################################
# esm LIB
################################################################################
set(esm_SRC
gauthier's avatar
   
gauthier committed
398
399
400
401
402
403
404
405
406
407
408
409
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_main.c
    ${OPENAIR_NAS_DIR}/UE/ESM/DedicatedEpsBearerContextActivation.c
    ${OPENAIR_NAS_DIR}/UE/ESM/DefaultEpsBearerContextActivation.c
    ${OPENAIR_NAS_DIR}/UE/ESM/EpsBearerContextDeactivation.c
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_ebr.c
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_ebr_context.c
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_ip.c
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_main.c
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_pt.c
    ${OPENAIR_NAS_DIR}/UE/ESM/EsmStatusHdl.c
    ${OPENAIR_NAS_DIR}/UE/ESM/PdnConnectivity.c
    ${OPENAIR_NAS_DIR}/UE/ESM/PdnDisconnect.c
gauthier's avatar
gauthier committed
410
    
gauthier's avatar
   
gauthier committed
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceAllocationReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceAllocationRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceModificationReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceModificationRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmInformationRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmInformationResponse.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/esm_msg.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmStatus.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnConnectivityReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnConnectivityRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnDisconnectReject.c
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnDisconnectRequest.c
gauthier's avatar
gauthier committed
434
    
gauthier's avatar
   
gauthier committed
435
436
437
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_recv.c
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_sap.c
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_send.c
gauthier's avatar
gauthier committed
438
439
440
)

set(esm_HDR
gauthier's avatar
   
gauthier committed
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
    ${OPENAIR_NAS_DIR}/UE/ESM/esm_main.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceAllocationReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceAllocationRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceModificationReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/BearerResourceModificationRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/esm_cause.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmInformationRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmInformationResponse.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/esm_msgDef.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/esm_msg.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/EsmStatus.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnConnectivityReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnConnectivityRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnDisconnectReject.h
    ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG/PdnDisconnectRequest.h
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_recv.h
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_sap.h
    ${OPENAIR_NAS_DIR}/UE/ESM/SAP/esm_send.h
gauthier's avatar
gauthier committed
470
471
472
473
474
)

add_library(esm ${esm_SRC} ${esm_HDR})

target_include_directories(esm PRIVATE 
gauthier's avatar
   
gauthier committed
475
476
477
478
479
                     ${OPENAIR_NAS_DIR}/UE/API/USER 
                     ${OPENAIR_NAS_DIR}/UE/ESM
                     ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG
                     ${OPENAIR_NAS_DIR}/UE/ESM/SAP
                     ${OPENAIR_NAS_DIR}/COMMON/IES
gauthier's avatar
gauthier committed
480
481
482
483
484
485
)

################################################################################
# ies LIB
################################################################################
set(ies_SRC
gauthier's avatar
   
gauthier committed
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
    ${OPENAIR_NAS_DIR}/COMMON/IES/AccessPointName.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AdditionalUpdateResult.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AdditionalUpdateType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ApnAggregateMaximumBitRate.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationFailureParameter.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationParameterAutn.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationParameterRand.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationResponseParameter.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/CipheringKeySequenceNumber.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/Cli.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/CsfbResponse.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/DaylightSavingTime.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/DetachType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/DrxParameter.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EmergencyNumberList.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EmmCause.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsAttachResult.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsAttachType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsBearerContextStatus.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsBearerIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsMobileIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsNetworkFeatureSupport.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsQualityOfService.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsUpdateResult.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsUpdateType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmCause.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmInformationTransferFlag.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmMessageContainer.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/GprsTimer.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/GutiType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/IdentityType2.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ImeisvRequest.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/KsiAndSequenceNumber.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/LcsClientIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/LcsIndicator.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/LinkedEpsBearerIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/LlcServiceAccessPointIdentifier.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/LocationAreaIdentification.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/MessageType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileStationClassmark2.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileStationClassmark3.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/MsNetworkCapability.c
navid's avatar
navid committed
529
    ${OPENAIR_NAS_DIR}/COMMON/IES/MsNetworkFeatureSupport.c
gauthier's avatar
   
gauthier committed
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasKeySetIdentifier.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasMessageContainer.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasRequestType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasSecurityAlgorithms.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/NetworkName.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/Nonce.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PacketFlowIdentifier.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PagingIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PdnAddress.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PdnType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PlmnList.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProcedureTransactionIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProtocolConfigurationOptions.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProtocolDiscriminator.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/PTmsiSignature.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/QualityOfService.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/RadioPriority.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/SecurityHeaderType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ServiceType.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/ShortMac.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/SsCode.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/SupportedCodecList.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TimeZoneAndTime.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TimeZone.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TmsiStatus.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrackingAreaIdentity.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrackingAreaIdentityList.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrafficFlowAggregateDescription.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrafficFlowTemplate.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/TransactionIdentifier.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeNetworkCapability.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeSecurityCapability.c
    ${OPENAIR_NAS_DIR}/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.c
gauthier's avatar
gauthier committed
564
565
)
set(ies_HDR
gauthier's avatar
   
gauthier committed
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
    ${OPENAIR_NAS_DIR}/COMMON/IES/AccessPointName.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AdditionalUpdateResult.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AdditionalUpdateType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ApnAggregateMaximumBitRate.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationFailureParameter.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationParameterAutn.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationParameterRand.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/AuthenticationResponseParameter.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/CipheringKeySequenceNumber.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/Cli.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/CsfbResponse.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/DaylightSavingTime.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/DetachType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/DrxParameter.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EmergencyNumberList.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EmmCause.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsAttachResult.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsAttachType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsBearerContextStatus.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsBearerIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsMobileIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsNetworkFeatureSupport.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsQualityOfService.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsUpdateResult.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EpsUpdateType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmCause.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmInformationTransferFlag.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/EsmMessageContainer.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/GprsTimer.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/GutiType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/IdentityType2.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ImeisvRequest.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/KsiAndSequenceNumber.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/LcsClientIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/LcsIndicator.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/LinkedEpsBearerIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/LlcServiceAccessPointIdentifier.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/LocationAreaIdentification.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/MessageType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileStationClassmark2.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/MobileStationClassmark3.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/MsNetworkCapability.h
navid's avatar
navid committed
609
    ${OPENAIR_NAS_DIR}/COMMON/IES/MsNetworkFeatureSupport.h
gauthier's avatar
   
gauthier committed
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasKeySetIdentifier.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasMessageContainer.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasRequestType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/NasSecurityAlgorithms.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/NetworkName.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/Nonce.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PacketFlowIdentifier.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PagingIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PdnAddress.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PdnType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PlmnList.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProcedureTransactionIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProtocolConfigurationOptions.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ProtocolDiscriminator.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/PTmsiSignature.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/QualityOfService.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/RadioPriority.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/SecurityHeaderType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ServiceType.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/ShortMac.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/SsCode.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/SupportedCodecList.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TimeZoneAndTime.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TimeZone.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TmsiStatus.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrackingAreaIdentity.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrackingAreaIdentityList.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrafficFlowAggregateDescription.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TrafficFlowTemplate.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/TransactionIdentifier.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeNetworkCapability.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/UeSecurityCapability.h
    ${OPENAIR_NAS_DIR}/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.h
gauthier's avatar
gauthier committed
644
645
646
647
648
649

)

add_library(ies ${ies_SRC} ${ies_HDR})

target_include_directories(ies PRIVATE 
gauthier's avatar
   
gauthier committed
650
                     ${OPENAIR_NAS_DIR}/COMMON/IES 
gauthier's avatar
gauthier committed
651
652
)

gauthier's avatar
gauthier committed
653
654
655
656
657
658


################################################################################
# EXECUTABLE at_nas_ue
################################################################################
include_directories( 
gauthier's avatar
gauthier committed
659
                     ${OPENAIR_DIR}/common/utils/msc 
gauthier's avatar
gauthier committed
660
661
                     ${OPENAIR3_DIR}/COMMON 
                     ${OPENAIR3_DIR}/SECU 
gauthier's avatar
gauthier committed
662
                     ${OPENAIR_NAS_DIR}/src 
gauthier's avatar
   
gauthier committed
663
664
665
666
667
668
669
670
671
672
673
                     ${OPENAIR_NAS_DIR}/COMMON 
                     ${OPENAIR_NAS_DIR}/COMMON/API/NETWORK 
                     ${OPENAIR_NAS_DIR}/UE/API/USER 
                     ${OPENAIR_NAS_DIR}/UE/EMM 
                     ${OPENAIR_NAS_DIR}/COMMON/EMM/MSG 
                     ${OPENAIR_NAS_DIR}/UE/EMM/SAP 
                     ${OPENAIR_NAS_DIR}/UE/ESM 
                     ${OPENAIR_NAS_DIR}/UE/ESM/SAP 
                     ${OPENAIR_NAS_DIR}/COMMON/ESM/MSG 
                     ${OPENAIR_NAS_DIR}/COMMON/IES 
                     ${OPENAIR_NAS_DIR}/COMMON/UTIL )
gauthier's avatar
gauthier committed
674
                     
gauthier's avatar
   
gauthier committed
675
676
677
678
679
ADD_EXECUTABLE(at_nas_ue  ${OPENAIR_NAS_DIR}/UE/UEprocess.c 
                          ${OPENAIR_NAS_DIR}/UE/nas_network.c  
                          ${OPENAIR_NAS_DIR}/UE/nas_parser.c
                          ${OPENAIR_NAS_DIR}/UE/nas_proc.c  
                          ${OPENAIR_NAS_DIR}/UE/nas_user.c  
gauthier's avatar
gauthier committed
680
681
682
683
                          )
                          
target_link_libraries (at_nas_ue 
                       -Wl,-whole-archive 
gauthier's avatar
gauthier committed
684
                       api_network api_user api_usim emm esm ies util secu_cn
gauthier's avatar
gauthier committed
685
686
                       -Wl,-no-whole-archive
                       ${NETTLE_LIBRARIES} 
gauthier's avatar
gauthier committed
687
688
                       ${OPENSSL_LIBRARIES} 
                       ${CMAKE_THREAD_LIBS_INIT} m )
gauthier's avatar
gauthier committed
689
690
691
692
693
694