Files
Aethera/kernel/cmake/rely.cmake
T
2026-08-23 00:22:28 +08:00

45 lines
1.4 KiB
CMake

include_guard(GLOBAL)
block()
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(aethera_kernel::taskflow
"https://github.com/taskflow/taskflow.git"
"v4.1.0"
)
rcl_get_effective_install_dir(
aethera_kernel::taskflow
TASKFLOW_ROOT
)
set(Taskflow_DIR
"${TASKFLOW_ROOT}/share/cmake/Taskflow"
)
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)"
)
# 配置阶段以当前内存 registry 为权威来源,依赖设置完成后刷新磁盘快照。
rcl_export_configuration(aethera_kernel)
endblock()