From ee54ee0c9296312fb35e8ea878c690ab28917db1 Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Thu, 12 Dec 2019 19:53:05 +0700
Subject: [PATCH] [+] Added submodule libdap-chain-common

---
 .gitmodules         | 3 +++
 CMakeLists.txt      | 7 +++++++
 libdap-chain-common | 1 +
 3 files changed, 11 insertions(+)
 create mode 160000 libdap-chain-common

diff --git a/.gitmodules b/.gitmodules
index f31f256d..80d88aeb 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -67,3 +67,6 @@
 [submodule "libdap-server-http-db"]
 	path = libdap-server-http-db
 	url = https://gitlab.demlabs.net/cellframe/libdap-server-http-db.git
+[submodule "libdap-chain-common"]
+	path = libdap-chain-common
+	url = https://gitlab.demlabs.net/cellframe/libdap-chain-common.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2603c2ce..9135e49f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,13 @@ if (NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
             "-fpic"  
        )
    endif()
+   if (NOT (TARGET dap_chain_common))
+       add_subdirectory(libdap-chain-common)
+       target_compile_options(
+            dap_chain_common PRIVATE
+            "-fpic"
+       )
+   endif()
    if (NOT (TARGET dap_chain_mempool))
        add_subdirectory(libdap-chain-mempool)
        target_compile_options(
diff --git a/libdap-chain-common b/libdap-chain-common
new file mode 160000
index 00000000..c6225af8
--- /dev/null
+++ b/libdap-chain-common
@@ -0,0 +1 @@
+Subproject commit c6225af83a270f68d4775fd2dfeee990bb658266
-- 
GitLab