From 399a4688b8f6f812f214a8d42b5fc7d209039a9c Mon Sep 17 00:00:00 2001
From: armatusmiles <akurotych@gmail.com>
Date: Sat, 14 Jul 2018 19:56:57 +0300
Subject: [PATCH] Add link libdap

---
 session/CMakeLists.txt | 2 ++
 stream/CMakeLists.txt  | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/session/CMakeLists.txt b/session/CMakeLists.txt
index c8e4fc0..d350291 100644
--- a/session/CMakeLists.txt
+++ b/session/CMakeLists.txt
@@ -23,6 +23,8 @@ add_definitions ("${dap_http_DEFINITIONS}")
 add_definitions ("${dap_http_server_DEFINITIONS}")
 add_library(${PROJECT_NAME} STATIC ${SESSION_SRCS})
 
+target_link_libraries(dap_session dap_core)
+target_link_libraries(dap_session dap_crypto)
 
 set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE)
 
diff --git a/stream/CMakeLists.txt b/stream/CMakeLists.txt
index 608ed02..989f34d 100644
--- a/stream/CMakeLists.txt
+++ b/stream/CMakeLists.txt
@@ -27,5 +27,9 @@ add_definitions ("${dap_http_DEFINITIONS}")
 add_definitions ("${dap_session_DEFINITIONS}")
 
 add_library(${PROJECT_NAME} STATIC ${STREAM_SRCS})
+
+target_link_libraries(dap_stream dap_core)
+target_link_libraries(dap_stream dap_crypto)
+
 set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE)
 set(${PROJECT_NAME}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR} CACHE INTERNAL "${PROJECT_NAME}: Include Directories" FORCE)
-- 
GitLab