cmake 引入 oneTBB

This commit is contained in:
2026-08-15 15:55:51 +08:00
parent 6655e8571b
commit 07c3937779
3 changed files with 29 additions and 773 deletions
+22
View File
@@ -0,0 +1,22 @@
include_guard(GLOBAL)
block()
rcl_init(render_kernel)
_register_git_cmake_library(render_kernel::oneTBB
"https://github.com/uxlfoundation/oneTBB.git"
"v2023.1.0"
)
rcl_get_effective_install_dir(render_kernel::oneTBB ONETBB_ROOT)
set(TBB_CONFIG_DIR "${ONETBB_ROOT}/lib/cmake/TBB")
rcl_cmake_library_set_cmake_options(render_kernel::oneTBB ${oneTBB_option})
rcl_cmake_library_set_other_use_opt(render_kernel::oneTBB
"-DTBB_DIR=\"${TBB_CONFIG_DIR}\""
)
rcl_cmake_library_set_init_script(render_kernel::oneTBB
"set(ONETBB_ROOT \"${ONETBB_ROOT}\")"
"set(TBB_DIR \"${TBB_CONFIG_DIR}\")"
)
rcl_cmake_library_set_clear_script(render_kernel::oneTBB
"unset(ONETBB_ROOT)"
"unset(TBB_DIR)"
)
endblock()