Commit e666cf5e authored by Robert Schmidt's avatar Robert Schmidt Committed by Sakthivel Velumani

Create CMake E1AP_RELEASE variable from E1AP_VERSION

parent 1f841336
set(E1AP_VERSION 16 78 0) set(E1AP_VERSION 16 78 0)
make_version(E1AP_cc ${E1AP_VERSION}) make_version(E1AP_cc ${E1AP_VERSION})
#add_definitions(-DE1AP_VERSION=${E1AP_cc}) #add_definitions(-DE1AP_VERSION=${E1AP_cc})
string(REPLACE ";" "." E1AP_RELEASE "${E1AP_VERSION}")
# TODO from E1AP_VERSION
set(E1AP_RELEASE "16.78.0")
if(E1AP_RELEASE VERSION_EQUAL "16.78.0") if(E1AP_RELEASE VERSION_EQUAL "16.78.0")
include(ASN.1/38463-g80.R16.78.0.cmake) include(ASN.1/38463-g80.R16.78.0.cmake)
...@@ -11,11 +9,6 @@ else() ...@@ -11,11 +9,6 @@ else()
message(FATAL_ERROR "unknown E1AP_RELEASE ${E1AP_RELEASE}") message(FATAL_ERROR "unknown E1AP_RELEASE ${E1AP_RELEASE}")
endif() endif()
message(STATUS "E1AP_VERSION ${E1AP_VERSION}")
message(STATUS "E1AP_cc ${E1AP_cc}")
message(STATUS "E1AP_RELEASE ${E1AP_RELEASE}")
message(STATUS "E1AP_GRAMMAR ${E1AP_GRAMMAR}")
add_custom_command(OUTPUT ${e1ap_source} ${e1ap_headers} add_custom_command(OUTPUT ${e1ap_source} ${e1ap_headers}
COMMAND ASN1C_PREFIX=E1AP_ asn1c -gen-PER -no-gen-OER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR} COMMAND ASN1C_PREFIX=E1AP_ asn1c -gen-PER -no-gen-OER -fcompound-names -no-gen-example -findirect-choice -fno-include-deps -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${E1AP_GRAMMAR}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment