diff --git a/core/base/CMakeLists.txt b/core/base/CMakeLists.txt index b5f7ccc89a96c..7801b6ccf6086 100644 --- a/core/base/CMakeLists.txt +++ b/core/base/CMakeLists.txt @@ -198,11 +198,27 @@ set(BASE_SOURCES src/TVirtualX.cxx ) +set(RELATIVE_BASE_INC_HEADERS ${BASE_HEADERS}) +list(TRANSFORM RELATIVE_BASE_INC_HEADERS PREPEND inc/) + # only here complete list of headers can be propogated to parent cmake file set_property(TARGET Core APPEND PROPERTY DICT_HEADERS ${BASE_HEADERS}) target_sources(Core PRIVATE ${BASE_SOURCES}) +if(NOT CMAKE_VERSION VERSION_LESS "3.23.0") # https://discourse.cmake.org/t/file-set-xyz-is-listed-in-interface-file-sets-of-w-but-has-not-been-exported/9131/3 + target_sources( + Core + PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ src/ + FILES + ${RELATIVE_BASE_INC_HEADERS} + src/TListOfTypes.h + ) +endif() + target_include_directories(Core PUBLIC $ )