aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-17 02:27:51 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-17 02:27:51 +0100
commitc35eb35bb63a97b7c46e879819757a9cb48165b5 (patch)
treeabc7f07740fae388f4ff6776585b56f56ec558c9 /CMakeLists.txt
downloadBobinkCOpcUa-c35eb35bb63a97b7c46e879819757a9cb48165b5.tar.gz
BobinkCOpcUa-c35eb35bb63a97b7c46e879819757a9cb48165b5.zip
Initial commit: OPC UA discovery project
CMake-based C project using open62541 for OPC UA discovery. Includes Local Discovery Server, register server, and find servers client with OpenSSL encryption support.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..4075e49
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,27 @@
+cmake_minimum_required(VERSION 4.0)
+project(OpcUaDiscovery C)
+
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+include(cmake/BuildDeps.cmake)
+
+add_library(DiscoveryCommon STATIC src/common.c)
+target_link_libraries(DiscoveryCommon open62541::open62541)
+
+add_executable(ClientFindServers src/client_find_servers.c)
+target_link_libraries(ClientFindServers DiscoveryCommon)
+
+add_executable(ServerLDS src/server_lds.c)
+target_link_libraries(ServerLDS DiscoveryCommon)
+
+add_executable(ServerRegister src/server_register.c)
+target_link_libraries(ServerRegister DiscoveryCommon)
+
+option(BUILD_DOC "Build open62541 HTML documentation" OFF)
+if(BUILD_DOC)
+ add_custom_target(doc
+ COMMAND ${CMAKE_COMMAND} --build "${OPEN62541_BUILD_DIR}" --target doc
+ COMMENT "Building open62541 HTML documentation"
+ VERBATIM)
+endif()