File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,27 @@ set(BASE_SOURCES
198198 src/TVirtualX.cxx
199199)
200200
201+ set (FULL_BASE_HEADERS ${BASE_HEADERS} )
202+ list (TRANSFORM FULL_BASE_HEADERS PREPEND ${CMAKE_CURRENT_SOURCE_DIR} /inc/)
203+
201204# only here complete list of headers can be propogated to parent cmake file
202205set_property (TARGET Core APPEND PROPERTY DICT_HEADERS ${BASE_HEADERS} )
203206
204207target_sources (Core PRIVATE ${BASE_SOURCES} )
205208
209+ 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
210+ target_sources (
211+ Core
212+ PRIVATE
213+ FILE_SET private_header_files
214+ TYPE HEADERS
215+ BASE_DIRS inc/ src/
216+ FILES
217+ ${CMAKE_CURRENT_SOURCE_DIR} /src/TListOfTypes.h
218+ ${FULL_BASE_HEADERS}
219+ )
220+ endif ()
221+
206222target_include_directories (Core PUBLIC
207223 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /inc>
208224)
You can’t perform that action at this time.
0 commit comments