From 77acceb4fbcf739bf8c69065008d10d2426a4bd2 Mon Sep 17 00:00:00 2001
From: Roel Aaij <raaij@nikhef.nl>
Date: Fri, 20 May 2022 21:44:44 +0200
Subject: [PATCH] Fix include for standalone build

---
 integration/non_event_data/CMakeLists.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/integration/non_event_data/CMakeLists.txt b/integration/non_event_data/CMakeLists.txt
index a823e90552d..0d50eb144e5 100644
--- a/integration/non_event_data/CMakeLists.txt
+++ b/integration/non_event_data/CMakeLists.txt
@@ -17,6 +17,11 @@ target_link_libraries(NonEventData PRIVATE
   UT
   nlohmann_json::nlohmann_json)
 
-target_include_directories(NonEventData PUBLIC 
-$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
-target_link_libraries(NonEventData PUBLIC BinaryDumpers)
\ No newline at end of file
+target_include_directories(NonEventData PUBLIC
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
+if (STANDALONE)
+target_include_directories(NonEventData PUBLIC
+  $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/Dumpers/BinaryDumpers/include>)
+else()
+  target_link_libraries(NonEventData PUBLIC BinaryDumpers)
+endif()
-- 
GitLab