Kaynağa Gözat

added pubsub information model methods option

Andreas Ebner 6 yıl önce
ebeveyn
işleme
93af3dabf7
2 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  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