aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/BuildDeps.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/BuildDeps.cmake')
-rw-r--r--cmake/BuildDeps.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmake/BuildDeps.cmake b/cmake/BuildDeps.cmake
index d535e0a..1f64e1f 100644
--- a/cmake/BuildDeps.cmake
+++ b/cmake/BuildDeps.cmake
@@ -1,9 +1,17 @@
+# ======================================
+# BuildDeps.cmake
+# ======================================
+#
+# Configures, builds, and installs the open62541 library into a
+# local prefix under the build tree. Skips the build when the
+# installed shared library already exists. After installation,
+# open62541 is imported via find_package so downstream targets
+# can link against open62541::open62541.
+
set(OPEN62541_SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/open62541")
set(OPEN62541_BUILD_DIR "${CMAKE_BINARY_DIR}/deps/open62541")
set(OPEN62541_INSTALL_DIR "${CMAKE_BINARY_DIR}/deps/open62541-install")
-# --- open62541 ---
-
if(NOT EXISTS "${OPEN62541_SOURCE_DIR}/CMakeLists.txt")
message(
FATAL_ERROR