- Checkers project which was using to understand some OOP principles, using SFML framework.
- Tested on Windows 10 and MacOS 11 (Big Sur) and MacOS 14 (Sonoma)
- Download SFML 2.6.x latest.
- Download latest CMake Installer for your OS
- Make sure you edit CMakeLists.txt file, line 14, change
CUSTOM_SFML_PATH
to your local path, where you installed SFML
- Visual Studio 2022 (select Complete Desktop C/C++ workload)
- Luckily, Visual Studio 2022 is bundled with CMake already
- Xcode latest with MacOS SDK.
- Extra Dev Build Tools. After Xcode installs, please run this in terminal:
sudo xcode-select --install
- Download SFML 2.6.x https://www.sfml-dev.org/download.php (Windows MSVC) or (Mac OS clang) compiled binaries.
- For Windows, chooose Visual C++ edition of SFML. (avoid MinGW or others, may cause issues!)
- For MacOS, please only keep "Frameworks" files for SFML, not "dylibs". For more details, see official guide
- For Windows, after downloading, simply move the SFML folder to a good location on disk, e.g
C:/SFML
- Alternatively, you can download SFML Sources and build locally yourself.
- Open this project folder in Cmake GUI, and select build folder "out/"
- Click Configure > choose "Xcode Generator" > click Done. Leave other settings as is.
- Click Generate, after few seconds, Xcode Project will be ready. Click Open Project in Xcode.
- After Xcode opens, click "Product" > "Edit Scheme" > select "Release". Click Save. Now click "Product" > "Build".
- If you want to share your App with others, you need to Copy SFML Frameworks into your APP Bundle during Build Phase (using XCode).
- Simply import this project folder in Visual Studio 2022.
- Automatically CMake for Visual Studio will generate the project for you.
- Select "Release" mode, then click "Build"