From 52378b6f66311817a846a5c97f00e8c5dd2dfe6e Mon Sep 17 00:00:00 2001
From: David Dormagen <czapper@gmx.de>
Date: Mon, 28 Jan 2019 18:17:16 +0100
Subject: [PATCH] enable building as part of a superproject

Originally 3509b943b9ee13143110214fb0a386adbddbf415
---
 Src/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Src/CMakeLists.txt b/Src/CMakeLists.txt
index 29e08b9..8677eff 100644
--- a/Src/CMakeLists.txt
+++ b/Src/CMakeLists.txt
@@ -4,7 +4,9 @@
 set(target ${PROJECT_NAME})
 add_library(${target} STATIC)
 
-find_package(biotracker-interfaces 0.2 REQUIRED)
+if( CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR )
+    find_package(biotracker-interfaces 0.2 REQUIRED)
+endif()
 target_link_libraries(${target} biotracker-interfaces)
 
 find_package(Boost REQUIRED system filesystem chrono timer)
-- 
GitLab