Separated E2Sim lib from E2SM-specific code
[sim/e2-interface.git] / e2sim / src / DEF / CMakeLists.txt
similarity index 62%
rename from e2sim/src/E2AP/E2SM/e2sm.h
rename to e2sim/src/DEF/CMakeLists.txt
index 19f30a2..21ed9f8 100644 (file)
@@ -1,7 +1,6 @@
-/*****************************************************************************
+#/*****************************************************************************
 #                                                                            *
-# 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 E2SM_H
-#define E2SM_H
+#******************************************************************************/
 
-#include "E2SM-gNB-X2-eventTriggerDefinition.h"
-#include "E2AP-PDU.h"
-#include "e2ap_asn1c_codec.h"
+# For clarity: this generates object, not a lib as the CM command implies.
+#
+add_library( def_objects OBJECT e2sim_defs.cpp)
 
-E2SM_gNB_X2_eventTriggerDefinition_t* create_eventTriggerDefinition(void);
+target_include_directories (def_objects PUBLIC
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+  $<INSTALL_INTERFACE:include>
+  PRIVATE src)
 
-void test_eventTriggerDefinition(void);
 
-#endif
+if( DEV_PKG )
+  install( FILES
+    e2sim_defs.h
+    DESTINATION ${install_inc}
+    )
+endif()
+# ---------------------------------------------------------------------------