Skip to content

Commit a7c99b6

Browse files
committed
introduce in ADD_CUSTOM_BUILTIN_RESOURCES function, correct builtin resources auto-generated files and paths for proper archive creation. Update examples_tests submodule and perform tests. Add more docs
1 parent ba669f7 commit a7c99b6

File tree

5 files changed

+221
-210
lines changed

5 files changed

+221
-210
lines changed

src/nbl/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ file(GLOB_RECURSE NABLA_HEADERS_PRIV1 "*.h")
361361
file(GLOB_RECURSE NABLA_HEADERS_PRIV2 "${NBL_ROOT_PATH}/src/nbl/*.h")
362362

363363
#always install builtins (some may be included in cpp regardless if embedded or not)
364+
365+
get_target_property(_BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH_ nblBuiltinResourceData BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH)
364366
foreach(X IN LISTS NBL_RESOURCES_TO_EMBED)
365-
list(APPEND NABLA_RESOURCES_TO_EMBED_PUBLIC "${NBL_ROOT_PATH}/include/${X}")
367+
list(APPEND NABLA_RESOURCES_TO_EMBED_PUBLIC "${NBL_ROOT_PATH}/include/${_BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH_}/${X}")
366368
endforeach()
367369
list(APPEND NABLA_HEADERS_PUBLIC ${NABLA_RESOURCES_TO_EMBED_PUBLIC})
368370
source_group("Resources to embed" FILES ${NABLA_RESOURCES_TO_EMBED_PUBLIC})

0 commit comments

Comments
 (0)