Skip to content

Commit

Permalink
Fix CMakeLists configuration of OPCUA A&C and Events Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-meingast committed Jan 21, 2025
1 parent 6027ab0 commit 4b9ad99
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/com/opc_ua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ if (FORTE_COM_OPC_UA)
forte_add_handler(COPC_UA_Local_Handler opcua_local_handler)
forte_add_handler(COPC_UA_Remote_Handler opcua_remote_handler)
# OPC UA Event Layer
forte_add_network_layer(OPC_UA_Events ON "ua_ev" COPC_UA_Event_Layer opcua_event_layer "Enable OPC UA Event Support")
forte_add_network_layer(OPC_UA_AC ON "ua_ac" COPC_UA_AC_Layer opcua_ac_layer "Enable OPC UA A&C Support")
forte_add_network_layer(OPC_UA_Events OFF "ua_ev" COPC_UA_Event_Layer opcua_event_layer "Enable OPC UA Event Support")
forte_add_network_layer(OPC_UA_AC OFF "ua_ac" COPC_UA_AC_Layer opcua_ac_layer "Enable OPC UA A&C Support")
forte_add_sourcefile_hcpp(opcua_layer opcua_local_handler opcua_helper opcua_remote_handler opcua_handler_abstract opcua_client_information opcua_action_info opcua_objectstruct_helper
opcua_event_layer opcua_ac_layer opcua_client_config_parser)
opcua_client_config_parser)

if (FORTE_COM_OPC_UA_AC)
forte_add_sourcefile_hcpp(opcua_ac_layer)
endif (FORTE_COM_OPC_UA_AC)
if (FORTE_COM_OPC_UA_Events)
forte_add_sourcefile_hcpp(opcua_event_layer)
endif (FORTE_COM_OPC_UA_Events)

if (NOT EXISTS ${FORTE_COM_OPC_UA_INCLUDE_DIR})
message(SEND_ERROR "FORTE_COM_OPC_UA_INCLUDE_DIR not set or does not exist")
endif (NOT EXISTS ${FORTE_COM_OPC_UA_INCLUDE_DIR})
Expand Down

0 comments on commit 4b9ad99

Please sign in to comment.