60 """
61 @brief Create a new Rendering Engine test/demo project.
62
63 Generates the folder structure, copies template files, and appends
64 'add_subdirectory()' to TestApplications/CMakeLists.txt.
65
66 @param name Name of the project to create.
67 """
68 project_dir = os.path.join(DEST_ROOT, name)
69 if os.path.exists(project_dir):
70 print(f"Error: Project '{name}' already exists.")
71 return
72
73 os.makedirs(project_dir)
74 copy_template(TEMPLATE_ROOT, project_dir, name)
75 FILE_PATH = os.path.join(DEST_ROOT, "CMakeLists.txt")
76 CMAKE_ADD_PROJECT = "\n" + "add_subdirectory(" + name + ")"
77 with open(FILE_PATH, "a") as cmake_file:
78 cmake_file.write(CMAKE_ADD_PROJECT)
79 print(f"Created new project at {project_dir}")
80