Swift and Cute 2D Game Framework: Setting Up a Project with CMake
Published on: 2025-06-09 04:15:16
Swift and Cute Framework: Setting up a project with CMake
Cute Framework is a simple, yet powerful C/C++ framework for building 2D games using the modern GPU pipeline. While C or C++ is fine, Swift is a modern language that many developers prefer for its safety and expressiveness. In this post, we will explore how to set up a project using Cute Framework with CMake, enabling you to write your game logic in Swift while leveraging the performance of C/C++ for rendering and other performance-critical tasks.
Prerequisites
Before we begin, ensure you have the following installed:
Swift (latest version, preferably Swift 6 or later)
CMake (we are going to use the most recent version 4.0, but 3.20+ should work just fine)
Ninja (required for building Swift with CMake)
Setting Up the Project Structure
Create a new directory for your project and navigate into it:
mkdir MyCuteGame cd MyCuteGame
Create the following directory structure:
mkdir src include touch CMakeLists.txt # Our CMake
... Read full article.