CMakeLists.txt 2.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
cmake_minimum_required(VERSION 2.8)

project(NAS_SIM_TOOLS)


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

set(OPENAIR_DIR     $ENV{OPENAIR_DIR})
set(OPENAIR1_DIR    $ENV{OPENAIR_DIR}/openair1)
set(OPENAIR2_DIR    $ENV{OPENAIR_DIR}/openair2)
set(OPENAIR3_DIR    $ENV{OPENAIR_DIR}/openair3)
set(OPENAIRCN_DIR   $ENV{OPENAIR_DIR}/openair-cn)
set(OPENAIR_TARGETS $ENV{OPENAIR_DIR}/targets)

#set(EXECUTABLE_OUTPUT_PATH ${OPENAIR_DIR}/targets/bin)


# Add .h files for dependancies
set(usim_SRC
gauthier's avatar
 
gauthier committed
23 24 25 26 27 28 29
    ${OPENAIR_DIR}/openair-cn/NAS/TOOLS/usim_data.c
    ${OPENAIR_DIR}/openair-cn/NAS/UE/API/USIM/usim_api.c
    ${OPENAIR_DIR}/openair-cn/NAS/UE/API/USIM/aka_functions.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/memory.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/nas_log.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/OctetString.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/TLVEncoder.c
30 31
)
set(usim_HDR
gauthier's avatar
 
gauthier committed
32 33 34 35 36 37 38
    ${OPENAIR_DIR}/openair-cn/NAS/TOOLS/network.h
    ${OPENAIR_DIR}/openair-cn/NAS/UE/API/USIM/usim_api.h
    ${OPENAIR_DIR}/openair-cn/NAS/UE/API/USIM/aka_functions.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/memory.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/nas_log.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/OctetString.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/TLVEncoder.h
39 40
)
include_directories(
gauthier's avatar
 
gauthier committed
41 42 43 44 45 46
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON
    ${OPENAIR_DIR}/openair-cn/NAS/UE/API/USIM
    ${OPENAIR_DIR}/openair-cn/NAS/UE/EMM/
    ${OPENAIR_DIR}/openair-cn/NAS/UE/ESM/
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/IES/
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL
47 48 49 50 51 52 53
)
ADD_EXECUTABLE(usim  ${usim_SRC} ${usim_HDR})




set(nvram_SRC
gauthier's avatar
 
gauthier committed
54 55 56
    ${OPENAIR_DIR}/openair-cn/NAS/TOOLS/ue_data.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/memory.c
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/nas_log.c
57 58 59
)

set(nvram_HDR
gauthier's avatar
 
gauthier committed
60 61 62
    ${OPENAIR_DIR}/openair-cn/NAS/UE/EMM/emmData.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/UTIL/memory.h
    ${OPENAIR_DIR}/openair-cn/NAS/COMMON/userDef.h
63 64 65 66 67 68 69 70 71
)

ADD_EXECUTABLE(nvram  ${nvram_SRC} ${nvram_HDR})

#install (TARGETS usim  DESTINATION ${EXECUTABLE_OUTPUT_PATH})
#install (TARGETS nvram DESTINATION ${EXECUTABLE_OUTPUT_PATH})

#install(CODE "EXECUTE_PROCESS (COMMAND ${OPENAIR_TARGETS}/bin/nvram --gen WORKING_DIRECTORY ${OPENAIR_TARGETS}/bin)")
#install(CODE "EXECUTE_PROCESS (COMMAND ${OPENAIR_TARGETS}/bin/usim  --gen WORKING_DIRECTORY ${OPENAIR_TARGETS}/bin)")