From 2698663f90f7103661e6babf9d2beb768494f345 Mon Sep 17 00:00:00 2001 From: Oren Bengigi <2327620+Obg1@users.noreply.github.com> Date: Sat, 14 Jan 2023 10:34:50 +0200 Subject: [PATCH] Update CMakeLists.txt (#1031) --- templates/cpp-template-default/CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/cpp-template-default/CMakeLists.txt b/templates/cpp-template-default/CMakeLists.txt index 8a4a69fb27..82e88f6561 100644 --- a/templates/cpp-template-default/CMakeLists.txt +++ b/templates/cpp-template-default/CMakeLists.txt @@ -75,13 +75,12 @@ if(APPLE OR WINDOWS) endif() # add cross-platforms source files and header files -list(APPEND GAME_SOURCE - Classes/AppDelegate.cpp - Classes/HelloWorldScene.cpp +file(GLOB_RECURSE GAME_SOURCE + Classes/*.cpp ) -list(APPEND GAME_HEADER - Classes/AppDelegate.h - Classes/HelloWorldScene.h + +file(GLOB_RECURSE GAME_HEADER + Classes/*.h ) if(ANDROID)