Explorar o código

added pubsub information model methods option

Andreas Ebner %!s(int64=6) %!d(string=hai) anos
pai
achega
93af3dabf7
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  1. 7 0
      CMakeLists.txt
  2. 1 0
      include/ua_config.h.in

+ 7 - 0
CMakeLists.txt

@@ -200,6 +200,13 @@ mark_as_advanced(UA_ENABLE_PUBSUB_DELTAFRAMES)
 
 option(UA_ENABLE_PUBSUB_INFORMATIONMODEL "Enable PubSub information model twin" OFF)
 mark_as_advanced(UA_ENABLE_PUBSUB_INFORMATIONMODEL)
+option(UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS "Enable PubSub informationmodel methods" OFF)
+mark_as_advanced(UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS)
+if(UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS)
+    if(NOT UA_ENABLE_PUBSUB_INFORMATIONMODEL)
+        message(FATAL_ERROR "PubSub information model methods cannot be used with disabled PubSub information model.")
+    endif()
+endif()
 if(UA_ENABLE_PUBSUB_INFORMATIONMODEL)
     if(NOT UA_ENABLE_PUBSUB)
         message(FATAL_ERROR "PubSub information model representation cannot be used with disabled PubSub function.")

+ 1 - 0
include/ua_config.h.in

@@ -27,6 +27,7 @@
 #cmakedefine UA_ENABLE_PUBSUB_ETH_UADP
 #cmakedefine UA_ENABLE_PUBSUB_DELTAFRAMES
 #cmakedefine UA_ENABLE_PUBSUB_INFORMATIONMODEL
+#cmakedefine UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS
 #cmakedefine UA_ENABLE_ENCRYPTION
 #cmakedefine UA_ENABLE_HISTORIZING
 #cmakedefine UA_ENABLE_SUBSCRIPTIONS_EVENTS