This is an automated email from the ASF dual-hosted git repository.
ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 0a90fe516 benchmarks/ramspeed: add cmake build support
0a90fe516 is described below
commit 0a90fe516782cad38f99f6c438e6ff84144f3267
Author: guoshichao <[email protected]>
AuthorDate: Tue Dec 24 16:45:14 2024 +0800
benchmarks/ramspeed: add cmake build support
Add CMakeLists.txt for the RAMSpeed benchmark application, enabling it to
be built with the CMake build system alongside the existing Makefile-based
build. This ensures consistent build behavior across build systems.
Signed-off-by: guoshichao <[email protected]>
---
benchmarks/ramspeed/CMakeLists.txt | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/benchmarks/ramspeed/CMakeLists.txt
b/benchmarks/ramspeed/CMakeLists.txt
new file mode 100644
index 000000000..a8b0df091
--- /dev/null
+++ b/benchmarks/ramspeed/CMakeLists.txt
@@ -0,0 +1,31 @@
+#
##############################################################################
+# apps/benchmarks/ramspeed/CMakeLists.txt
+#
+# 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_RAMSPEED)
+ nuttx_add_application(
+ NAME
+ ${CONFIG_BENCHMARK_RAMSPEED_PROGNAME}
+ SRCS
+ ramspeed_main.c
+ STACKSIZE
+ ${CONFIG_BENCHMARK_RAMSPEED_STACKSIZE}
+ PRIORITY
+ ${CONFIG_BENCHMARK_RAMSPEED_PRIORITY})
+endif()