From 33cf8cd3b34fc13929bffdfea3c7e6d58560b7e9 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Wed, 22 Jul 2026 12:32:19 +0200 Subject: [PATCH] Expose NGLLogger include dir as INTERFACE and include ProjectDataManagement in TetraIF migration build\n\n- Add to NGLLogger INTERFACE include dirs so consumers can include .\n- When MIGRATE_MODULE=TetraIF also add_subdirectory(Lts/Plugins/ProjectDataManagement) to ensure ProjectDataManagement headers are available.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- CMakeLists.txt | 1 + Z/src/NGLLogger/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a19b2644..85d4a8bbf 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,6 +364,7 @@ NGL_ADD_SUBDIR_GUARDED(Lts) if(DEFINED MIGRATE_MODULE AND MIGRATE_MODULE STREQUAL "TetraIF") message(STATUS "Including helper modules for TetraIF migration: Lts/Proxies/TrainingAreaBase and Z/src") add_subdirectory(Lts/Proxies/TrainingAreaBase) + add_subdirectory(Lts/Plugins/ProjectDataManagement) add_subdirectory(Z/src) endif() # at last, to make sure we get all targets in NGL_TS_TARGETS property diff --git a/Z/src/NGLLogger/CMakeLists.txt b/Z/src/NGLLogger/CMakeLists.txt index ce22f3fee..b289c1a3b 100755 --- a/Z/src/NGLLogger/CMakeLists.txt +++ b/Z/src/NGLLogger/CMakeLists.txt @@ -23,8 +23,13 @@ ADD_DEFINITIONS(-DBUILDING_NGLLOGGER) NGL_ADD_LIBRARY(ALL NGLLogger SHARED ${NGLLogger_SRCS} ${NGLLogger_HDRS}) NGL_TARGET_INCLUDE_DIRECTORIES(NGLLogger INTERFACE + ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ ) + +# Export headers for other modules building in the same tree (e.g., TetraIF) +# Ensure NGLLogger target provides include paths so consumers can include + NGL_TARGET_LINK_LIBRARIES(NGLLogger PRIVATE $,Log4Qt::log4qt,>