This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 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 2a452d453 examples/keyboard: add CMake build support
2a452d453 is described below
commit 2a452d453beda8fff64ddfdf20dd57a9dd68d7be
Author: Swatantra Yadav <[email protected]>
AuthorDate: Wed Nov 4 02:20:14 2026 +0530
examples/keyboard: add CMake build support
Adds CMakeLists.txt to apps/examples/keyboard providing CMake build
support matching Makefile 1:1. Resolves missing CMakeLists.txt
gap identified in issue #19549.
Signed-off-by: Swatantra Yadav <[email protected]>
Assisted-by: Google Gemini
---
examples/keyboard/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/examples/keyboard/CMakeLists.txt b/examples/keyboard/CMakeLists.txt
new file mode 100644
index 000000000..709a6c28d
--- /dev/null
+++ b/examples/keyboard/CMakeLists.txt
@@ -0,0 +1,33 @@
+#
##############################################################################
+# apps/examples/keyboard/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_EXAMPLES_KEYBOARD)
+ nuttx_add_application(
+ NAME
+ kbd
+ STACKSIZE
+ ${CONFIG_DEFAULT_TASK_STACKSIZE}
+ MODULE
+ ${CONFIG_EXAMPLES_KEYBOARD}
+ SRCS
+ kbd_main.c)
+endif()