CMakeLists.txt 2.04 KB
Newer Older
1 2 3 4
cmake_minimum_required(VERSION 2.8)

project(NAS_SIM_TOOLS)

5 6 7 8
include(FindPkgConfig)
pkg_search_module(CONFIG libconfig REQUIRED)
include_directories(${CONFIG_INCLUDE_DIRS})
add_definitions(-std=gnu99)
9 10

ENABLE_LANGUAGE(C)
11 12

set(CMAKE_C_FLAGS
13
  "${CMAKE_C_FLAGS} ${C_FLAGS_PROCESSOR} -Werror -Wall -Wstrict-prototypes -Wno-packed-bitfield-compat -g")
14 15 16 17

set(OPENAIR_DIR     $ENV{OPENAIR_DIR})
set(OPENAIR3_DIR    $ENV{OPENAIR_DIR}/openair3)

18 19
set(conf2uedata_SRC
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/conf2uedata.c
20
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/conf_emm.c
21
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/conf_user_data.c
22 23
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/fs.c
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/display.c
gauthier's avatar
gauthier committed
24 25 26 27 28 29
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USIM/usim_api.c
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USIM/aka_functions.c
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/memory.c
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/nas_log.c
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/OctetString.c
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/TLVEncoder.c
30
    ${OPENAIR_DIR}/common/utils/utils.c
31
)
32 33 34

set(conf2uedata_HDR
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/conf2uedata.h
35
    ${OPENAIR_DIR}/openair3/NAS/TOOLS/conf_emm.h
gauthier's avatar
gauthier committed
36 37 38 39 40 41
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USIM/usim_api.h
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USIM/aka_functions.h
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/memory.h
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/nas_log.h
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/OctetString.h
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL/TLVEncoder.h
42
    ${OPENAIR_DIR}/common/utils/utils.h
43
)
44

45
include_directories(
46 47
    ${OPENAIR_DIR}/common/utils
    ${OPENAIR_DIR}/openair3/NAS/UE
gauthier's avatar
gauthier committed
48
    ${OPENAIR_DIR}/openair3/NAS/COMMON
49
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USER
gauthier's avatar
gauthier committed
50 51 52 53 54
    ${OPENAIR_DIR}/openair3/NAS/UE/API/USIM
    ${OPENAIR_DIR}/openair3/NAS/UE/EMM/
    ${OPENAIR_DIR}/openair3/NAS/UE/ESM/
    ${OPENAIR_DIR}/openair3/NAS/COMMON/IES/
    ${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL
55 56
)

57 58
ADD_EXECUTABLE(conf2uedata  ${conf2uedata_SRC} ${conf2uedata_HDR})
target_link_libraries(conf2uedata ${CONFIG_LIBRARIES})