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 <NGLLogger/...>.\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>
This commit is contained in:
1 parent
b190fb33e7
commit
33cf8cd3b3
2 files changed
+6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 <NGLLogger/INGLLogger.h>
|
||||
|
||||
NGL_TARGET_LINK_LIBRARIES(NGLLogger
|
||||
PRIVATE
|
||||
$<IF:$<BOOL:${Log4Qt_FOUND}>,Log4Qt::log4qt,>
|
||||
|
||||
Reference in new issue
Block a user