From 38ba89f06a793714bfaea2a772fb157b09c93f4d Mon Sep 17 00:00:00 2001 From: Felix-LJY <1793542731@qq.com> Date: Tue, 15 Sep 2026 11:54:46 +0800 Subject: [PATCH] benchmarks/sd_bench: Fix sd_bench in CMake build system. Fix sd_bench in CMake build system. Signed-off-by: JingYue LIAO --- benchmarks/sd_bench/CMakeLists.txt | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 benchmarks/sd_bench/CMakeLists.txt diff --git a/benchmarks/sd_bench/CMakeLists.txt b/benchmarks/sd_bench/CMakeLists.txt new file mode 100644 index 00000000000..d46ec238843 --- /dev/null +++ b/benchmarks/sd_bench/CMakeLists.txt @@ -0,0 +1,33 @@ +# ############################################################################## +# apps/benchmarks/sd_bench/CMakeLists.txt +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_BENCHMARK_SD_BENCH) + nuttx_add_application( + NAME + ${CONFIG_BENCHMARK_SD_BENCH_PROGNAME} + STACKSIZE + ${CONFIG_BENCHMARK_SD_BENCH_STACKSIZE} + PRIORITY + ${CONFIG_BENCHMARK_SD_BENCH_PRIORITY} + SRCS + sd_bench_main.c) +endif()