首次提交 基础架构完成
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
include_guard(GLOBAL)
|
||||
block()
|
||||
rcl_init(render_kernel)
|
||||
set(oneTBB_option ${base_options})
|
||||
list(APPEND oneTBB_option
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DTBB_BUILD=ON
|
||||
-DTBB_INSTALL=ON
|
||||
-DTBB_TEST=OFF
|
||||
-DTBB_EXAMPLES=OFF
|
||||
-DTBB_STRICT=OFF
|
||||
-DTBB4PY_BUILD=OFF
|
||||
-DTBBMALLOC_BUILD=OFF
|
||||
-DTBBMALLOC_PROXY_BUILD=OFF
|
||||
)
|
||||
_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()
|
||||
Reference in New Issue
Block a user