From 3509b943b9ee13143110214fb0a386adbddbf415 Mon Sep 17 00:00:00 2001 From: David Dormagen Date: Tue, 6 Nov 2018 14:25:46 +0100 Subject: [PATCH] enable building as part of a superproject --- Src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/CMakeLists.txt b/Src/CMakeLists.txt index 53167ff..b891b59 100644 --- a/Src/CMakeLists.txt +++ b/Src/CMakeLists.txt @@ -7,7 +7,9 @@ target_include_directories(${TN} PUBLIC $ ) -find_package(BT_Interfaces 0.1 REQUIRED) +if( CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR ) + find_package(BT_Interfaces 0.1 REQUIRED) +endif() target_link_libraries(${TN} BT_Interfaces) find_package(Qt5 REQUIRED COMPONENTS Core Gui Xml Network Widgets)