################################################################################
# Licensed to Open Source Radio Access Network(OS-RAN) Alliance and OAI
# Software Alliance under one or more contributor license agreements. The
# initial OpenXG series projects are derided from OAI projects, the files from
# OAI projects are all in compliance with OAI Public License, Version 1.1.
# codes and files developed from OpenXG projects and from OS-RAN Alliance
# are all under OS-RAN licenses; you may not use this file except in compliance
# with the license.  You may get a copy of the license at:
#	http://www.openxg.org.cn/?falu_69.html
# For more information about OpenXG, please contact:
# contact@openxg.org.cn
################################################################################

set(NAS_DIR "${SRC_TOP_DIR}/nas")
include_directories(${NAS_DIR})
include_directories(${NAS_DIR}/ies)
include_directories(${NAS_DIR}/mm)
include_directories(${NAS_DIR}/mm/msg)
include_directories(${NAS_DIR}/sm)
include_directories(${NAS_DIR}/sm/msg)
include_directories(${NAS_DIR}/security)
include_directories(${SRC_TOP_DIR}/ngap/asn1c)
include_directories(${SRC_TOP_DIR}/ngap/ies)
include_directories(${SRC_TOP_DIR}/common)
include_directories(${SRC_TOP_DIR}/common/msg)
include_directories(${SRC_TOP_DIR}/common/utils)
include_directories(${SRC_TOP_DIR}/common/utils/bstr)
include_directories(${SRC_TOP_DIR}/common/nas)
  
file(GLOB NAS_src_files
    ${NAS_DIR}/*.c
    ${NAS_DIR}/ies/*.c
    ${NAS_DIR}/network/*.c
    ${NAS_DIR}/mm/msg/*.c
    ${NAS_DIR}/mm/*.c
    ${NAS_DIR}/sm/*.c
    ${NAS_DIR}/sm/msg/*.c
    ${SRC_TOP_DIR}/common/utils/*.c
    ${SRC_TOP_DIR}/common/utils/bstr/*.c
    ${SRC_TOP_DIR}/nas/security/*.c
    ${SRC_TOP_DIR}/common/*.c
    ${SRC_TOP_DIR}/ngap/asn1c/*.c
    ${SRC_TOP_DIR}/ngap/ies/*.c
)   

add_library(NAS ${NAS_src_files} ${NETTLE_LIBRARIES} ${CRYPTO_LIBRARIES})