Add CMake build, .gitignore, and polish README for Phase 1#1
Conversation
|
@codex fix the Windows CMake workflow failure. The GitHub Actions job "CMake on Windows" is failing during CMake configure because CMake cannot find SFML: Could not find a package configuration file provided by "SFML" Please inspect the repo's CMakeLists.txt and .github/workflows files and fix this in the smallest reliable way. Goal:
Preferred fix:
Also add a note in the workflow comments explaining why vcpkg is used on Windows. After the fix, summarize:
|
Summary
Requested command summaries
Git/PR actions completed
Testing
|
|
@codex fix the Tetris CI properly. The Windows workflow is still failing. Inspect the repo and repair the CI/build setup in the smallest reliable way. Important: Tasks:
name: CMake Build on: jobs:
Goal: green GitHub Actions build, not perfect cross-platform packaging. |
Summary
Committed on current branch:
Changed files
Exact verification commandsTesting
|
Motivation
Description
CMakeLists.txtwith C++17 settings, portable warning flags, afind_package(SFML 2.5 REQUIRED COMPONENTS graphics window system)call, and a post-build command to copy theimages/directory next to the executable..gitignoretuned for C++/CMake projects to filter build directories, generated CMake files, common object/library artifacts, IDE folders, and OS files.README.mdto include corrected clone instructions, explicit dependencies, examplecmakebuild and run commands, controls, features, and a short list of known limitations.main.cpp; the change set is limited to build, docs, and repository hygiene.Testing
cmake -S . -B build && cmake --build build, and configuration failed because SFML development files/config (SFMLConfig.cmakeorsfml-config.cmake) were not present in the environment, so the build did not complete.Codex Task