更换为 taskflow了
This commit is contained in:
+34
-26
@@ -1,34 +1,42 @@
|
||||
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
|
||||
rcl_init(aethera_kernel)
|
||||
set(taskflow_option ${base_options})
|
||||
list(APPEND taskflow_option
|
||||
-DTF_BUILD_EXAMPLES=OFF
|
||||
-DTF_BUILD_TESTS=OFF
|
||||
-DTF_BUILD_BENCHMARKS=OFF
|
||||
-DTF_BUILD_PROFILER=OFF
|
||||
-DTF_BUILD_CUDA=OFF
|
||||
-DTF_BUILD_MODULES=OFF
|
||||
)
|
||||
_register_git_cmake_library(render_kernel::oneTBB
|
||||
"https://github.com/uxlfoundation/oneTBB.git"
|
||||
"v2023.1.0"
|
||||
_register_git_cmake_library(aethera_kernel::taskflow
|
||||
"https://github.com/taskflow/taskflow.git"
|
||||
"v4.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_get_effective_install_dir(
|
||||
aethera_kernel::taskflow
|
||||
TASKFLOW_ROOT
|
||||
)
|
||||
rcl_cmake_library_set_init_script(render_kernel::oneTBB
|
||||
"set(ONETBB_ROOT \"${ONETBB_ROOT}\")"
|
||||
"set(TBB_DIR \"${TBB_CONFIG_DIR}\")"
|
||||
set(Taskflow_DIR
|
||||
"${TASKFLOW_ROOT}/share/cmake/Taskflow"
|
||||
)
|
||||
rcl_cmake_library_set_clear_script(render_kernel::oneTBB
|
||||
"unset(ONETBB_ROOT)"
|
||||
"unset(TBB_DIR)"
|
||||
rcl_cmake_library_set_cmake_options(
|
||||
aethera_kernel::taskflow
|
||||
${taskflow_option}
|
||||
)
|
||||
rcl_cmake_library_set_other_use_opt(
|
||||
aethera_kernel::taskflow
|
||||
"-DTaskflow_DIR=\"${Taskflow_DIR}\""
|
||||
)
|
||||
rcl_cmake_library_set_init_script(
|
||||
aethera_kernel::taskflow
|
||||
"set(TASKFLOW_ROOT \"${TASKFLOW_ROOT}\")"
|
||||
"set(Taskflow_DIR \"${Taskflow_DIR}\")"
|
||||
)
|
||||
rcl_cmake_library_set_clear_script(
|
||||
aethera_kernel::taskflow
|
||||
"unset(TASKFLOW_ROOT)"
|
||||
"unset(Taskflow_DIR)"
|
||||
)
|
||||
endblock()
|
||||
Reference in New Issue
Block a user