Преглед на файлове

added exampleClient to project (from stateless branch)

Florian Palm преди 10 години
родител
ревизия
c56b71e9ff
променени са 2 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 9 0
      CMakeLists.txt
  2. 0 0
      src/client/ua_client.c

+ 9 - 0
CMakeLists.txt

@@ -152,6 +152,15 @@ add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/src_generated/ua_transport_gener
                    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tools/generate_namespace.py
                            ${CMAKE_CURRENT_SOURCE_DIR}/tools/schema/Custom.Opc.Ua.Transport.bsd)
 
+# build example client
+option(CLIENT "Build a test client" OFF)
+if(CLIENT)
+message(STATUS "Extensions: enabling client")
+
+add_executable(exampleClient examples/opcuaClient.c)
+target_link_libraries(exampleClient open62541)
+endif()
+
 # build example server
 set(server_sources examples/opcuaServer.c
                    examples/logger_stdout.c)

+ 0 - 0
src/client/ua_client.c