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
198
198
src/TVirtualX.cxx
199
199
)
200
200
201
+ set (FULL_BASE_HEADERS ${BASE_HEADERS} )
202
+ list (TRANSFORM FULL_BASE_HEADERS PREPEND ${CMAKE_CURRENT_SOURCE_DIR} /inc/)
203
+
201
204
# only here complete list of headers can be propogated to parent cmake file
202
205
set_property (TARGET Core APPEND PROPERTY DICT_HEADERS ${BASE_HEADERS} )
203
206
204
207
target_sources (Core PRIVATE ${BASE_SOURCES} )
205
208
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
+
206
222
target_include_directories (Core PUBLIC
207
223
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /inc>
208
224
)
You can’t perform that action at this time.
0 commit comments