This is an automated email from the ASF dual-hosted git repository. linguini1 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit c2d83f3419a7d32a52d790a9664f2260ecc4fc1f Author: Swatantra Yadav <[email protected]> AuthorDate: Sat Oct 17 18:46:12 2026 +0530 games/snake: add CMake build support Add CMakeLists.txt to enable CMake build support for the snake game. Signed-off-by: Swatantra Yadav <[email protected]> --- games/snake/CMakeLists.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/games/snake/CMakeLists.txt b/games/snake/CMakeLists.txt new file mode 100644 index 000000000..bf4467bb5 --- /dev/null +++ b/games/snake/CMakeLists.txt @@ -0,0 +1,37 @@ +# ############################################################################## +# apps/games/snake/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. +# +# ############################################################################## + +# Snake game info + +if(CONFIG_GAMES_SNAKE) + nuttx_add_application( + NAME + ${CONFIG_GAMES_SNAKE_PROGNAME} + PRIORITY + ${CONFIG_GAMES_SNAKE_PRIORITY} + STACKSIZE + ${CONFIG_GAMES_SNAKE_STACKSIZE} + MODULE + ${CONFIG_GAMES_SNAKE} + SRCS + snake_main.c) +endif()
