Separated E2Sim lib from E2SM-specific code
[sim/e2-interface.git] / e2sim / src / encoding / CMakeLists.txt
similarity index 60%
rename from e2sim/src/X2AP/x2ap_message_handler.hpp
rename to e2sim/src/encoding/CMakeLists.txt
index b3146c7..755d00f 100644 (file)
@@ -1,7 +1,7 @@
-/*****************************************************************************
+
+#/*****************************************************************************
 #                                                                            *
-# Copyright 2019 AT&T Intellectual Property                                  *
-# Copyright 2019 Nokia                                                       *
+# Copyright 2020 AT&T Intellectual Property                                  *
 #                                                                            *
 # Licensed under the Apache License, Version 2.0 (the "License");            *
 # you may not use this file except in compliance with the License.           *
 # See the License for the specific language governing permissions and        *
 # limitations under the License.                                             *
 #                                                                            *
-******************************************************************************/
-#ifndef X2AP_MESSAGE_HANDLER_HPP
-#define X2AP_MESSAGE_HANDLER_HPP
-
-#include "e2sim_defs.h"
-#include "e2sim_sctp.hpp"
-#include "asn_x2ap.hpp"
-#include "x2ap_asn_codec.hpp"
+#******************************************************************************/
 
-void x2ap_handle_sctp_data(int &socket_fd, sctp_buffer_t &data);
+# For clarity: this generates object, not a lib as the CM command implies.
+#
+add_library( encoding_objects OBJECT encode_e2apv1.cpp)
 
-void x2ap_handle_X2SetupRequest(x2ap_pdu_t* pdu, int &socket_fd);
+include_directories(../ASN1c)
 
-void x2ap_handle_X2SetupResponse(x2ap_pdu_t* pdu, int &socket_fd);
+target_include_directories (encoding_objects PUBLIC
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+  $<INSTALL_INTERFACE:include>
+  PRIVATE src )
 
-void x2ap_handle_ENDCX2SetupRequest(x2ap_pdu_t* pdu, int &socket_fd);
 
-#endif
+if( DEV_PKG )
+  install( FILES
+    encode_e2apv1.hpp
+    DESTINATION ${install_inc}
+    )
+endif()
+# ---------------------------------------------------------------------------