Skip to content

Commit c7ac717

Browse files
simbit18xiaoxiang781216
authored andcommitted
game: Aligned Cmake with Make
- Conway's Game of Life #3210 Signed-off-by: simbit18 <[email protected]>
1 parent 31d567e commit c7ac717

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

games/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
#
2121
# ##############################################################################
2222

23+
nuttx_add_subdirectory()
24+
2325
nuttx_generate_kconfig(MENUDESC "Games")

games/cgol/CMakeLists.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ##############################################################################
2+
# apps/games/cgol/CMakeLists.txt
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
20+
#
21+
# ##############################################################################
22+
23+
# CGOL game info
24+
25+
if(CONFIG_GAMES_CGOL)
26+
nuttx_add_application(
27+
NAME
28+
${CONFIG_GAMES_CGOL_PROGNAME}
29+
PRIORITY
30+
${CONFIG_GAMES_CGOL_PRIORITY}
31+
STACKSIZE
32+
${CONFIG_GAMES_CGOL_STACKSIZE}
33+
MODULE
34+
${CONFIG_GAMES_CGOL}
35+
SRCS
36+
cgol_main.c)
37+
endif()

games/cgol/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
include $(APPDIR)/Make.defs
2424

25-
# Snake game info
25+
# CGOL game info
2626

2727
PROGNAME = $(CONFIG_GAMES_CGOL_PROGNAME)
2828
PRIORITY = $(CONFIG_GAMES_CGOL_PRIORITY)

0 commit comments

Comments
 (0)